On touching a hot plate you suddenly withdraw your hand

On touching a hot plate you suddenly withdraw your hand. Which category of
neurons become active first and which are next ?
A. 1) On touching a hot plate, first the sensory organs are activated which take the information to the brain or the spinal card.
2) Next the motor neurons become active and bring the impulses from the brain to the muscles.
3) In receiving these impulses, the muscles contract and the hand is immediately removed from the hot plate.