The brain and the spinal cord are part of the central nervous system and the peripheral nerves are part of the peripheral nervous system. The nervous system works as the communication/ control system of the body. It transmits signals throughout the body.