I just learned today in class that the neurons that carry information about the sense of touch send messages more quickly than neurons that carry messages of pain to the brain. That's why when we hit our arm or leg on something, we tend to rub it with our hand. Our brain and nervous system become more occupied about us rubbing it than the pain of the injury. So in a way, it reduces the intensity of pain that we feel.
Isn't this cool?