Answer:
The energy flows in the ecosystem in the form of matter(food). The food that is prepare by the producers is used by the consumers and the energy is transferred in the form of food.
The energy decreases at each tropic level because it is utilized by the organism itself for performing various types of metabolic reactions and some amount of energy is lost in the form of heat.
Apart from this only some amount of energy is transferred to another level which is approximately 10% of the total energy they have.