In a recent review article, Brock Bastian, Jolanda Jetten and colleagues explore the social, psychological, and biological consequences of pain.  They note that pain may have some positive consequences by presenting a negative contrast, augmenting self-regulation, and motivating social connections through empathy.