The nervous system is composed of neurons and neuroglia. It detects stimuli through sensory neurons, processes information in the central nervous system, and responds through motor neurons. The central nervous system includes the brain and spinal cord. The brain is made up of the cerebrum, cerebellum, and brainstem. The peripheral nervous system connects the central nervous system to the body and is divided into the somatic, autonomic, and enteric systems. Neurons have a cell body, dendrites, and axon. The nervous system maintains homeostasis through detection of and response to stimuli.