There are many, many types of decomposers that take dead plants and animals and break them down into nutrients in the soil so that plants can use them to grow.
In a forest, decomposers help other organisms survive because they they put nutrients into the soil that plants use to grow.