The spinal cord is a long, thin, tubular structure that extends from the brainstem down the back. It contains ascending tracts that carry sensory information up to the brain and descending tracts that carry motor commands down from the brain. The spinal cord transmits this information between the brain and the rest of the body.