The hypothalamus connects the nervous system to the endocrine system-where hormones are produced-via the pituitary gland. The cerebellum lies beneath the cerebrum and has important functions in motor control. It plays a role in coordination and balance, and may also have some cognitive functions.