We've just published a study showing that habenula BOLD responses correlate with aversive value in Pavlovian conditioning (modelled using reinforcement learning). We also show that these responses correlate with conditioned inhibition or excitation, which is a key functional role of pain.
Here's a link the article
Here's a link to a BBC and New York Times piece.