The nervous system is divided into two main parts, the central nervous system and the peripheral nervous system. The central nervous system consists of the brain and spinal cord. The peripheral nervous system consists of nerves that connect the central nervous system to every other part of the body and carries information to and from the central nervous system. The nervous system is essential for controlling and coordinating the body's activities and reacting to changes in the environment.