Ice maker not working

I’ve had this happen twice on my fridge. The first time the tube that delivers water to the ice maker was clogged and it was easily fixed, by a repairman not me. The second time it was the electronic module that controls the ice making and would have cost over $300 so we elected not to fix it.