The nervous system has three main functions: sensory input, integration of stimuli, and motor output. It is structurally divided into the central nervous system (brain and spinal cord) and peripheral nervous system. The peripheral nervous system is further divided into the somatic and autonomic systems. Nervous tissue contains two main cell types: neurons, which transmit electrical signals, and neuroglia, or glial cells, which support neurons. The brain is divided into regions including the cerebrum, diencephalon, brain stem, and cerebellum. Cranial and spinal nerves connect the central and peripheral nervous systems.