The spinal cord sends messages from the brain to the rest of the body. It also sends messages from the body to the brain about different sensations, such as pain, temperature, and touch.