The spinal nerves and the cranial nerves make up the peripheral nervous system (PNS). There are 31 pairs of spinal nerves and 12 pairs of cranial nerves.