The energy from the sun is stored in the food as chemical energy. Plants are producers which provide food for all living organisms.
Animals make use of the energy when they feed on plants.