If you follow the wires back from the water valve I believe you will find that they plug into the control board located at the top of the washer.
The water valve gets power directly from this board, part # 22002989R
If you are not getting power from the control board to the water valves I would replace the control board.
Sometimes you can look at that control board and see it has been damaged, such as a small burnt part or burnt spot on the back side.Edited to add
: The title of this topic should say Maytag, not Whirlpool.