If they were hot then the element must be working. Most likely a faulty temperature sensor or thermostat depending on what make & model you have. Could also be a timer or control board problem, again depends on make & model.
Lincoln Appliance NZ, October 2011