Replacement 40E Motor info:
The replacement part number is:
8013402 40 12V MOTOR
If you have an oil-filled drive you will have to replace or service this as it cannot be taken apart and put together. You will know if you have an oil-filled drive if you have pipe tape on the large plugs facing the membrane. You can also remove these plugs and see if oil is inside.
With an oil-filled drive, you can replace the complete motor drive:
8013994 40 MOTOR/DRIVE 12 V KIT
Or, replace the motor and install a drive service kit:
8019114 DRIVE SERVICE KIT PS40/80/160
Below is a video that covers the installation of this kit:
https://www.youtube.com/watch?v=oVox47I3DIc&list=PLJ7D5RAA4OpHlD0GTAkuSD8Pm6zlZLW3S&index=14&t=0s