Could be badly scaled up.  this would cause it to overheat and the thermal cut-out that protects the heating element would shut it off.  Suggest getting it descaled and then fitting a magnetic water softener/de-ioniser to the cold feed to the shower to prevent it happening again.
                 Moosepig
                
 November 2006