Very likely the thermostat. Switch the power off, rotate the knob to off, then rotate slowly towards colder just until it makes a click. Now rotate very slowly back in the warmer direction, if it clicks again with just a slight turn it is faulty. There should be about 5 degrees of rotation between on and off clicks. This is the differential that prevents constant cycling.
Experience develops good judgement, bad judgement develops experience