The brain stem acts as a release center connecting the cerebrum and cerebellum to the spinal cord, performing many automatic functions such as breathing, heart rate, body temperature, wake and sleep cycles, digestion, sneezing, coughing, vomiting, and even swallowing.