A shortcut in the wiring
Most messages in your body travel to the brain, which decides what to do. A reflex takes a shortcut. When sensors in your skin detect something harmful, the signal races along a nerve to your spinal cord — and the spinal cord sends back an order to move immediately, without waiting for the brain.
This loop is called a reflex arc, and it can complete in a fraction of a second. The signal still reaches your brain, which is why you feel the pain and think 'that was hot' — but by then, your hand is already safe.
The famous knee tap
Doctors test this wiring with a small hammer tap just below the kneecap. The tap stretches a tendon, sensors report the stretch, and the spinal cord orders the thigh muscle to contract. The lower leg kicks, all by itself.
The point of that reflex is everyday balance: it constantly corrects small stretches in your muscles so you can stand and walk without thinking about every adjustment.
Built-in first aid
You are born with many reflexes: blinking when something flies at your eyes, coughing when something irritates your throat, and pulling away from pain. They are not clever, and they are not always right — but they are fast, and in an emergency, fast is what matters.
Thinking is your brain's great gift. Reflexes are its humble bodyguards, standing watch while the thinking catches up.

