The brain and spinal cord make up the central nervous system; the rest of the body is made up of the peripheral nervous system. The brain receives signals from the spinal cord to process.
The cranial cavity of the skull houses the brain, while the vertebral cavity of the vertebral column houses the spinal cord.
The word "peripheral nervous system" refers to the location of the nervous system, which is outside of the brain and spinal cord.
Saying that the CNS is what is inside these two compartments and the peripheral nervous system is what is outside of them is a bit oversimplified, but it is one way to begin to think about it.
The distinction between central and peripheral nervous systems is not always universal and depends on several features of the nervous system. In reality, a few peripheral nervous system components are located in the cranial or vertebral cavities.
The nervous system's "power plant" has been referred to as the peripheral nervous system. It functions similarly to a system that gathers data and issues commands.
The autonomic nervous system and the sensory-somatic nervous system are the other two divisions of the PNS. Later on, both will be covered in more detail.
To know more about nervous system check the below link: