The answer is nervous and musculoskeletal system.
When a person touches a hot surface with his hand, a receptor detects a stimulus. The information is sent to relay neuron through a sensory neuron, parts of nervous system. Relay neuron sends information to the effector (musculoskeletal system) through a motor neuron and effector produces a response.