Food chains illustrate the transfer of energy and nutrients through an ecosystem. Starting with producers like plants, energy moves to herbivores and then to various levels of carnivores. Decomposers like bacteria and fungi break down dead organisms, returning nutrients to the soil, thus completing the cycle. This chain influences food-borne diseases through the transfer of pathogens.