The three primary roles of the spinal cord are to send motor commands from the brain to the body, send sensory information from the body to the brain, and coordinate reflexes.