In a food chain, energy flows from producers (plants) to primary consumers (herbivores) to secondary consumers (carnivores). Stored energy, in the form of fat or carbohydrates, allows organisms to store excess energy for future use when food sources may become scarce, providing a buffer against fluctuations in food availability and ensuring their survival.