I had this with an electric shower and it was a diode on the phased shutdown PCB had burned out. If your shower used to run on a bit until the hot water had all gone, and then switch off automatically, then it might be this. Have a look at the PCB for any burned components. If the shower is...