The somatic nervous system is part of the peripheral nervous system and controls voluntary body movement through control of skeletal muscles. It contains sensory neurons that carry information from nerves to the central nervous system and motor neurons that carry information from the brain and spinal cord to muscles. There are 31 pairs of spinal nerves and 12 pairs of cranial nerves that are part of the somatic nervous system. The somatic nervous system also controls involuntary reflex arcs through direct nerve pathways between sensory nerves and the spinal cord.