The spinal cord is responsible for immediate reflex actions, allowing the body to quickly withdraw from painful stimuli like hot water without involving conscious thought. It contains millions of neurons throughout the body that converge on the spinal cord, which can initiate responses and also connects the brain to the peripheral nervous system. The spinal cord extends from the skull down the center of the back, transmitting signals between the brain and body.