ice maker not working

ice maker not getting water water dispenser is ok

Try swapping the wires on the dual water inlet valve. Then try the water dispenser. The water should go to the ice maker. This will tell you weather or not the ice maker valve is working and if the line is clear.

was unable to switch leads so I direct wired & the water went to im like crazy. Does this mean replace ice maker ?
Thanks for your help

Yes, I would replace it.