On a global scale, energy flows through ecosystems, whereas chemical elements are recycled in ecosystems.
Energy exists at all times - it cannot be destroyed or changed in any way. It always flows through the world, affecting the beings in it. On the other hand, any harmful substances are destroyed and made into something better that is going to contribute to the world.