The brainstem consists of the medulla oblongata, pons, and midbrain. It connects the spinal cord to the forebrain and controls vital functions like breathing, heart rate, swallowing and sneezing. The medulla regulates breathing and circulation. The pons relays messages between the brain and cerebellum and is involved in sleep, hearing, taste and balance. The midbrain coordinates eye and body movements and processes vision and sound.