Pain is complicated and a bit of a fascination of mine.
Pain has two aspects to it:
The trigger for the pain being detected by the nervous system and that information transmitting up to your brain
Then the experience of that pain
The experience of pain is where you can really change things.
For example, people can endure pain if they think that it's for a good purpose.
I got into this when I was in my third trimester of pregnancy, for obvious reasons. Having a baby is one of those things where, yep, pain, but also, so much joy. Going through that pain is really different from, say, getting your leg run over by a bus, even though maybe on the felt pain they are both a 10.
There's a lot of things you can do to modulate your sense of pain.
I've also known a few people with chronic pain, and that really interests me. I have one high school classmate who had a rare side effect from a bad needle stick that has left him in wretched pain all the time. Every so often he posts on Facebook about his bad days. They sound horrible.