what connects the brain and the spinal cord