If you are talking about an U-Line brand ice maker, then repair is easy. If the compressor is bad, it can be replaced and the system can be recharged at a reasonable cost. I would recommend a good cleaning before putting it back in the cabinet
If the unit has been setting for a long period of time out of service, then it could just be a stuck timer. I have fixed many of these units by turning the timer with a power screwdriver. If that does not work, the ice maker unit is a standard replacement unit available at any appliance repair store.
Good luck,