if i remember correctly, a brain freeze is where the blood temperature is lowered slightly by a cold drink/food. the chilled blood from the stomach travels around the body giving the chilling sensation, and at the brain it causes a much bigger effect due to lots of nerves.
same principle to drinking a hot drink for hypothermia, warms the blood back up.
may be wrong, but i think i'm right