I found the source of my problem. Somehow my wife had pulled out the floater and did not put it back the right way. The floater has a sensor or a relay that activates the water inlet valve. Check if that is your problem. You can also check the valve itself to see if you have anything...
My dishwasher was working correctly and the next day it did not want to fill up with water. I have checked the water supply and the inlet. I looked inside the inlet and it does not have anything blocking it. Any suggestions?