Constant input of energy from the sun is required to sustain life.
The energy flows between autotrophs, heterotrophs and decomposers.
All transfer of energy results in a loss of heat.
On the other hand, chemicals are constantly recycled.
Autotrophs produce chemical energy that yield organic compounds that sustain heterotrophs.