A newly published study suggests that the immune system may play a role in why recovery from pain differs in men and women.