Stuck thermostat?
Air in the cooling system?
Broken heater valve?
Bad radiator cap or bad surfaces for it to seal in the radiator neck?
Could be some combination of that stuff, check it out. If its none of those, we can start guessing about more unusual stuff.