From the food they eat.
No.
to do work and to live
To get nutrients and energy to live
No. Neither can plants, for that matter. Animals get the energy they need from plants, or from other animals, which they eat. Plants get their energy from the sunlight.
Plants(vegetables)Animals(meats)
the animal is an herbivore they live by the solar energy
There are many things that could affect the ability of animals to obtain the energy they need to live. Having water is a good start.
polar bears need to live, so they have to get energy from other animals.
food to live and keep their energy
So they can live
Humans are animals, and all animals require energy to move, and reproduce. They obtain that energy from ingesting food, and digesting it.
If your talking about the energy we use to live, we get it from the sun, via plants and animals who eat plants.