Quickly gobbling up cold ice cream may result in “brain freeze,” also know as an ice cream headache. When the cold object touches the roof of your mouth, the blood vessels contract in order to prevent loss of body heat. As the coldness stops, the blood vessels relax again, quickly increasing blood flow to the brain.
This sudden release is What causes the intense headache sensation. You can relieve brain freeze by quickly warming the roof of your mouth: Touch your tongue to the top of your mouth or, if you can roll your tongue in a ball, press the underside of your tongue (which is warmer) to the roof of your mouth. Slowly sipping room-temperature water or pressing a warm thumb against the roof of the mouth also works for some people.