The peripheral nervous system (PNS) consists of nerves branching from the brain and spinal cord that allow electrical impulses to travel between the central nervous system and the rest of the body. It is divided into the somatic nervous system and autonomic nervous system. The somatic nervous system controls voluntary activities through spinal and cranial nerves. The autonomic nervous system regulates involuntary functions through the sympathetic and parasympathetic divisions.