We had this problem when we moved in as the tank had no water in it and heater shorted out. The site office arranged for the whole unit to be replaced.
We have also noticed that if the air con is on full at the same time as the water heater then the trip switch sometimes goes. Switching one or the other off and resetting the trip switch seems to clear the problem.
Michael