How do bodys maintain temperature?

The energy you get from the food allows you to heat up and the water you drink makes you cool down