Swallow cold drink, the back of my head hurts. Why this is?

Same reason... ...As when your hands hurt coming indoors from the cold: rebound from vessels constricting when cold-exposed.