The nervous system is the master controlling and communicating system of the body. It has two main parts: the central nervous system (CNS) and the peripheral nervous system (PNS). The CNS consists of the brain and spinal cord and controls sensory input, integration of information, and motor output. The PNS connects the CNS to the rest of the body through nerves and allows for voluntary control of muscles and glands as well as involuntary reflexes. The nervous system monitors both internal and external changes through sensory receptors and responds through integration and motor functions to control the body.