Cleaning the tank is not the problem. Repairing the electrical component(s) is. The anode rod is also not the cause of lack of hot water. My procedure for all my tanks has been;
1. Install the water heater.
2. Turn on the water
3. Turn on the electicity, or
4. Turn on the gas, light the pilot, and then turn on the burner
5. Use the hot water for many, many years
6. Replace elements in an electric heater if they burn out.
7. Replace the water heater when it eventually leaks.