The nervous system has three main functions: sensory input, integration in the central nervous system, and motor output. It is composed of neurons, which are cells that transmit electrical and chemical signals. Neurons have dendrites, a cell body, and an axon ending in synaptic terminals. Information flows from sensory neurons to interneurons to motor neurons in a reflex arc or longer pathways. At the synapse, an electrical signal becomes a chemical signal using neurotransmitters. The peripheral nervous system controls voluntary and involuntary functions and connects to the central nervous system, which integrates sensory input and coordinates motor output through structures like the brainstem, cerebellum, and cerebrum.