Air in the cooling system and a bad radiator cap can do that.