Maytag ice maker

Have a problem with the auger motor not working for ice maker I pulled the ice maker out and tested the motor it works fine so I must not be getting power to it put everything back together and reinstalled ice maker now nothing will work when I hit the lever for water or ice it just beeps and everything worked but auger for ice maker before