Check the wire connections at the door hinge. Pull them apart and plug them back in. Leave the hinge cover off.
Test the ice maker again. If it works, good. If it doesn't, wiggle the wire harness above the hinge assembly and check the ice maker again. I'm suspecting a bad wire harness in the door assembly. It's affected by either cold temperatures or the opening and closing of the door.