The nervous system is a complex collection of nerves and specialized cells. It consists of the brain, spinal cord, sensory organs, and all of the nerves that connect these organs with the rest of the body.