I had to replace the motor on my dryer 1/2 a year or so ago. Granted it's 20 years old, but I try and keep them going. Washer needs a new shaft seal so water doesn't go down it... always something here lately.
At least my Mazda Protege5 started up after replacing the broken timing belt
Good on you for fixing it.