When plants and animals die and decay, the nutrients get recycled by the decomposers so that other plants can use them as they grow.
In a forest, decomposers help other organisms survive because they they put nutrients into the soil that plants use to grow.