If the drive motor isn't running, you should connect the loose wires on the drive motor. If the wire harness is damaged, you need to replace it. There are components that prevent the drum from rotating smoothly. The drive motor should be replaced if the wiring and drive components are OK. The main control board needs to be replaced if the drive motor can't shut off if the dryer isn't unplugged.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.