It seems like the question is about whether the electric element side of the water heater is working. If the water gets hot when the 12V/propane side is ON by itself, but not when the 120V side is on by itself, there are a number of possibilities.
First off, if this is a Suburban water heater, the secondary switch on the outside of the water heater could be OFF. That only prevents the electric element from getting power.
Secondly, on a Suburban, there are separate thermostats for 12V/propane operation and 120V operation. And the thermostat/ECO assemblies each have a reset button. The ECO might have tripped, requiring a reset.
Third, whether a Suburban or Atwood unit, the electric element could be burned out.
Fourth, there could be a power interruption somewhere.
If you have a Suburban water heater, consult our owner-written
Water Heater Troubleshooting Guide for pictures and step-by-step directions to figure out what's wrong.
Incidental to the OP's problem, the discussion earlier in the thread touched on whether 12V DC power has to be available to the water heater for the electric element to work. On an Atwood unit the answer is yes. The Atwood control board operates both the 12V/propane and 120V thermostats and control circuitry. On the Suburban units, the answer is generally no, but if Heartland used 12V DC switches or other controls, and I think they have in recent years, the relays or other devices need 12V DC in order to sent 120V AC to the water heater.
And the mid-2017 Landmark 365s have a KIB control system that needs 12V DC to operate the water heater controls.