Wiring for maytag door switch

replaced motor and belt ,and tension pulley on my maytag.In process of removing door,the wire came off the door switch.no matter how i put them back.dryer won,t start:confused:

Door switch: White wire goes to COM (common), yellow wires to NO (normally open), gray wire, if you have an interior lamp, to NC (normally closed).

Eric