Ice maker freezing

Our ice maker wasnt making ice. When I looked into it, the area where the water goes into the ice maker tray full and frozen so no water could get to the trays. I removed the icemaker, defrosted it the and then put it back in. The icemaker then made one round of ice then the ice tray itself (the teflon coated tray) froze with all the ice in it and never emptied. I again disconnected the ice maker and have defrosted and released the ice. What may be the problem? Thanks!!