The PNS (Peripheral Nervous System) 's function is carried impulses from the sensory receptors to the CNS and from the CNS to the appropriate glands or muscles.
CNS (central nervous system) is the integrating and command centers of the nervous system. They interpret incoming sensory information and issue instructions based on past experience and current conditions.