A healthy ecosystem includes producers (like plants) that form the base, consumers (herbivores, carnivores) that feed on producers and each other, and decomposers (bacteria, fungi) that break down dead organic matter, returning essential nutrients to the environment for producers. The balance between these three fundamental components ensures the flow of energy and cycling of nutrients necessary for the ecosystem's stability and persistence.