The nervous system is divided into the central nervous system and peripheral nervous system. The central nervous system consists of the brain and spinal cord and processes sensory information and controls motor messages. The peripheral nervous system connects the central nervous system to other parts of the body and environment and is divided into somatic and autonomic nerves.