A deer gets its energy from the grass it eats. The grass gets its energy from the sun. Anyway back to the deer. The deer then uses its energy to move from place to place to where food is plentiful. When the deer dies it will either have been hunted and eaten by its predators, or it will have died naturally and it will decompose over time.