Here is the completed reflex arc:
When you stand on a pin, the pain sensor sends an electrical impulse along the sensory neuron. This is passed across a synapse as a chemical and processed in the CNS in a relay neuron. It is passed across another synapse and through the motor neuron as an electrical impulse. This causes the muscle to move away from the pin. It is an involuntary response.
CNS motor synapse electrical involuntary sensor