The nervous system consists of the central nervous system (brain and spinal cord) and the peripheral nervous system (nerves). It detects internal and external changes, processes sensory information, and initiates motor responses. The nervous system has three main functions - sensory input, integration of input, and motor output responses. It works through neurons, which communicate via electrochemical signals called nerve impulses.