Very interesting issue - Hot water not coming out
The cold water could have a higher pressure, and if a backflow preventer is defect, the cold water will enter the hot water tubes. Thermostatic faucets are prone for that failure. See also
Hot water turning cold in pipe at branch line