icemaker not working

water dispenser works but no water to the icemaker.checked the valves and are good but no power to the icemaker solenoid. Also noticed no power to the black and white wire attached to the ice maker itslef. The sensor lights blinks red on/off on regular basis by the on/off switch. Any suggestion on the problem.

Bob