The nervous system is a complex network of nerves and cells that transmit signals between different parts of the body. It is responsible for coordinating and controlling all bodily functions, including movement, sensation, and thought. The nervous system is divided into two main parts: the central nervous system (CNS), which includes the brain and spinal cord, and the peripheral nervous system (PNS), which includes all the nerves that branch out from the CNS to the rest of the body.