The nervous system maintains homeostasis within the body, serving as the master control and communication center (Figure 1). The nervous system allows the body to interpret, integrate, and react to the surrounding environment and to internal stimuli.

Figure 1: Nervous system anatomy.
Voluntary actions such as writing, reading, or running, as well as involuntary actions such as the heart pumping blood through the body, the pancreas releasing enzymes, or the gut digesting food are monitored by this complex system (Figure 2).

Figure 2: Major nerves of the nervous system.
The three roles of the nervous system are sensory input (for stimuli inside and external to the body), integration of sensory input, and activation of accessory organs to induce a motor response. To accomplish these substantial tasks, the nervous system is organized into two distinct subsystems: the central nervous system (CNS) and the peripheral nervous system (PNS).