Its task is to relay information from your brain and spinal cord to the rest of your body and from your body to your brain and spinal cord.Your peripheral nervous system consists of 12 pairs of cranial nerves, which emerge from your brain and mainly serve your head and neck.