If the temperature in the freezer is no more than 5°F and the water line into the ice maker is not blocked then the solution is to replace the whole ice maker. It makes the repair much more reliable than fixing the old ice maker.
If the ice maker harness plug is flat then you can use the ice maker Part number: AP4360346
Otherwise you have to order the ice maker Part number: AP2984633
Here are the breakdown diagrams and Replacement parts for WHIRLPOOL RS22AQXMQ00 REFRIGERATOR | AppliancePartsPros.com