Refrigerator Water Dispenser Problem

The water dispenser does not work. The ice maker works fine. It’s my understanding that it could be either the water inlet valve, the solenoid or the switch at the dispenser. How do I determine what it is before ordering the parts? Are there any other parts that could cause this problem? Are there any diagrams showing where these parts are located?