^^^ I agree this thread is getting hard to follow. So at the risk of redundancy:
Have you verified that the 120 VAC supply to the water heater is solid? I went through a lot of trouble and a couple OP's here suggested the problem could be in a junction/splice box.
In our case, the water heater power connection box has a short lead of ROMEX cable to a junction box right behind the heater. In other words, less than a 3-foot run.
I opened that splice box up and found the the white neutral line had burned its connection out. I didn't replace the box, rather I gutted it and made the connections with wire nuts. The fix turned out to be very easy, but I'd wasted a lot of time checking Element, Thermostat, Two Switches, on and on.
If you have a connection feeding the water heater, that's gone intermittent, it could be causing your sometimes yes/sometimes no, heating issue on electric.
BTW - It's GOOD that Jayco installed the water heater with that short run and then a junction box. There is NO reaching the actual connections on the water heater unless the heater is removed or the cabinet is dismantled.