If you only use hot water, i.e., no mixing of the unheated tank water , then the hot water flow from the tank is irrelevant to the temp of the water.
The flow through the tank is a different issue.
With regard to Heat with with the AC element, if you have some clear warming, but it’s not as hot then I’d thing about a bad AC connection or wire, a bad thermostat, or a heating element that going. If you have no heating of water. Then you could have no power, a bad heating element, or a bad thermostat. (Sounds similar. ). When you flip on the breaker for the hot water heater, with the tank clearly cold, do you show a 4 or 6 amp 110 v load? If not, then I’d check the AC at the hot water heater and see if you have juice there. My next guess would be that you heating element is shot.
If you have a conventional heater, I’d try the hardware store for a replacement. Assuming you have access to the heater, it’s a simple fix. Draining the tank will occur you need to make sure the AC is really OFF. Etc.