The central nervous system (CNS) consists of the brain and spinal cord.The peripheral nervous system (PNS) consists of cranial nerves, which arise from the brain, and spinal nerves, which arise from the spinal cord.