I have that problem. You didn't mention your dx, but I have CFS/FM and sjoegren's. I am in pain all the time, but when it ratchets up (I am moving overseas while working full time, for example) I find I eat stuff to feel better. Sometimes I eat as though I am looking for a silver bullet to get my energy back.
A lot of people mention nerves. I just want to take a nap, but being a person with a job and household/farm chores (animals can't feed themselves) It is simply not realistic. I don't yet have a coping mechanism for it, but acknowledging the pain and comforting the body (heating pad, bath, medication, calling your doctor if you are having a flare, etc.) is never bad. I take a heating pad to work, snuggle with my dog (who has pain issues also!) and cancel some of my social engagements. I have found that when I'm in pain I'm a little generous with my wine portions.
I am trying to use herbal tea in stead. I found a tea I like a lot, so I am hoping... I was doing a little yoga. Not the flow stuff because my joints get pissed off at the skinny girls whipping through poses until I am 15 behind! No, I meant get into a pose and breathe and stretch... Next one... Etc. That helps when I've Not overslept! I have a fibri cd that has a guided meditation which helps.
I think it's important to acknowledge your pain. Often we are here because we ignore warnings and push through until our bodies can't take anymore. I don't revel in it, but when I stop and acknowledge, I can be more mindful.
Pain sucks, sister.