Water dispenser works sometimes

My ice maker works fine, but the water dispenser will dispense some water then stop. If I wait a few minutes in will deispense some water again then stop again. It keeps stopping. I hear the humming but water just stops flowing. It’s been going on for about a month now. Could it be the water valve that I have been reading similar posts on?