I am unfamiliar with an ajax valve and how it pertains to your problem.
It sounds as if the dip tube is missing or broken.
The dip tube allows cold water to enter the heater at the bottom of the tank. If the dip tube is missing or broken, cold water can enter the tank at the top, mixing with the hot water and thus making it luke warm or appear as if the hot water is running out.
The Local Plumber
Tustin, California http://www.TheLocalPlumber.com