It connects a large part of the peripheral nervous system to the brain. Information (nerve impulses) reaching the spinal cord through sensory neurons are transmitted up into the brain. Signals arising in the motor areas of the brain travel back down the cord and leave in the motor neurons.
The spinal cord also acts as a minor coordinating center responsible for some simple reflexes like the withdrawal reflex.