The sensation of pain begins with nerves beneath the skin that detect tissue damage. These "pain receptors" send a signal to the peripheral nerves when damage occurs, and the peripheral nerves send a signal to the brain.
If the animation above isn't working, click here to get the Shockwave player.