ice maker problems

When the ice maker fills it won’t shut off automatic, I had to shut the water valve off, it (was) working just fine