The somatic nervous system is the division of the peripheral nervous system that is responsible for controlling the voluntary movements of the body and transmitting sensory information from the external environment to the central nervous system. It consists of sensory and motor neurons that connect the brain and spinal cord to the muscles, skin, and other parts of the body.