Energy flows from the producer level to the consumer level.
In any ecosystem, Producers are those species which make their own food. The best example is any kind of green plant. Green plants make their food by taking sunlight and using the energy to make sugar. On the other hand The organisms that obtain their energy from other organisms are called consumers. All animals are consumers, and they eat other organisms. So we can see that energy always flows from producers to consumers.