What are the functions of spinal cord?

It performs two functions :
(a) The stimuli are passed from and to the brain through the spinal cord.
(b) It is the centre of spinal reflex action.