What do animals eat plants to get?

Animals usually eats plants so as to get vitamins and the essential ions that are in plants.