Heat is generated continuously in an electric heater but the temperature remains constant after some time. Why?

It is because, at a certain temperature rate of heat generation becomes exactly equal to the rate of heat radiation.