Glad you found the answer to your issue, the electric element of the water heater can't heat without power. If the switch was in the off position when you had hot water for 3 hours you must have been heating with propane.
Perhaps it was on and someone inadvertantly reached behind the propane assy and pushed the switch off.... Doesn't matter, works now.
Just remember to change the water supply to 'bypass' and turn off that switch before you drain the tank and check your anode rod to see if it needs to be replaced.
Anode Rod should be good if you just purchased a new RV.
Paul