They don't involve the conscious part of the brain:
The pain stimulus is detected by receptors
Impulses from the receptor pass along a sensory neurone to the CNS
An impulse then passes through a relay neurone
A motor neurone carries an impulse to the effector.
The effector (usually a muscle) responds
Such as to withdraw a limb away from the source of pain.