The easiest way to determine if this is the icemaker or the water valve is to unplug the water valve solenoid while the water is coming into the icemaker. If it stops - replace the icemaker, if not - water valve.
Find Appliance Parts at AppliancePartsPros.com - Largest inventory in the U.S. with 91% of all in-stock orders delivered within 2 business days. Thousands of photos and diagrams make it very easy to find the right part. Enter your appliance model here.