The hypothalamus, among many other functions, controls body temperature, hunger and thirst. The pituitary gland is a pea-sized organ attached to the hypothalamus.