The nervous system has two main parts - the central nervous system (CNS) and the peripheral nervous system (PNS). The CNS is made up of the brain and spinal cord, and acts as the main control center. The brain controls all body functions and processes sensory information. The spinal cord relays messages between the brain and body and coordinates reflexes. The PNS connects the CNS to the rest of the body using cranial and spinal nerves. It links the CNS to sensory receptors and muscles throughout the body.