This is a very broad question, like asking for a theory of everything. If you narrow your subject, you might get an answer that fills a book. We only have a few paragraphs of space here.
Animals eat plants and other animals and both consume water. Plants take in carbon dioxide and make oxegen. Plants need sun to grow so they can feed the animals so animals can be useful and plants can be useful as well.