Much like any other animals: they ate, drank, slept, reproduced and did all the other things living creatures do.
The variety was enormous, though. Some were enormous plant-eaters processing tonnes of vegetation a day, others were feathered predators, and a few were small enough to fit in two hands. Fossils tell us about diet and growth; behaviour is largely informed guesswork built on what living relatives do.