Like a few others said, air in the cooling system. Bleed it out, and have your rad cap checked. My 05 Jimmy was forever getting air in the system...the heater core would air lock completely and I would have no heat.....bleed the air, be fine for a few hours, then back to air-locked. Bled it once more, replaced the Rad Cap, been 2 months air-lock free.
Jay