Fact 1: a pan is used for cooking food by heating food in it on a stove. 
Fact 2: An oven, stove, and microwave are available to keep food warm or to heat it up.
A pan is used to keep food warm or to heat it up.