No water during start-up cycle

The original problem is when you start a wash cycle you hear the solenid click but the washer doesn’t get water inside. You can restart it 3-5 times before it will finally get the water to the washer. I was told it was the panel switch and the control board. I’m curious which is the more probable culprit of the two.:cool: