Organisms interact with each other and their ecosystem constantly, producing a constant flow of energy and matter.
Each of the living things on our planet needs energy and matter to survive. In order to do this, they must interact with the environment around them.
This is where sunlight, the climate of a habitat, water and even other living beings come into play.
The energy is constantly renewed in the ecosystems of these living beings, however matter does not. We can find matter in living beings that die, and this is where decomposing organisms appear. They are in charge of releasing disposable and decomposed matter into the atmosphere, which after being released will be used by the producing organisms.
Basically matter and energy are the basic components of the food chain, where matter is transferred and energy is renewed.