The brainstem consists of three parts - the midbrain, pons, and medulla. It connects the spinal cord to the forebrain and contains nuclei that control vital functions like breathing and heart rate. It also contains tracts that relay signals between the spinal cord and higher brain centers. The reticular formation is a network of fibers and neurons throughout the brainstem that plays roles in motor control, sensory processing, autonomic functions, and maintaining alertness. Important structures in the brainstem include the cranial nerve nuclei, pyramidal tract, olives, and red nucleus.