Here are your parts.
Replacement parts for Whirlpool KEYL517BWH2 ELECTRIC DRYER | AppliancePartsPros.comSee the attachment for the tech sheet.
Before I go back to the repairman, is there any way to check the new motor to make sure it's not defective?
You could bench test it but that involves making up a cheater cord and doing a live test. I would just check the motor windings with a meter, 5M to 4M should be about 1 to 2 ohms.
You could also do a full circuit test.
Be sure to short the meter leads together before starting so you know if the meter has a zero offset.
Unplug the unit.
Attach (tape etc.) one meter lead to the Neutral pin of the line cord and leave it there.
Check Neutral at the terminal strip, should be 0 ohms.
Door switch must be closed.
At T ( Timer Switch 4) at the timer, should be 0 ohms.
At W (Timer Switch 4), should be 0 ohms.
At 5M on the motor, should be 0 ohms.
At 4M on the motor, should be an ohm or so.
At both sides of the thermal fuse, should be an ohm or so.
At R2 on the Push to Start Relay, should be an ohm or so.
At R1 on the Push to Start Relay with the button pushed, should be an ohm or so.
At BU on the timer with Push to Start pushed, should be an ohm or so.
At BK on the timer with Push to Start pushed,should be an ohm or so
At L1 (black) on the terminal strip with Push to Start pushed,should be an ohm or so.
At the L1 pin on the power cord, with Push to Start pushed,should be an ohm or so.
There that is the complete start circuit for the motor.