A student is studying the human body's response to external temperature changes. They learn that a specific system is responsible for transmitting sensory information about temperature changes from the skin to the brain and then conveying the brain's response to the muscles to shiver or sweat. Which system performs this function?