Replace/Repair Resistor type to drive 5V dc-motor for old toy
Those are inductors for filtering electrical grunge produced by the motor, not resistors.  And they are not the problem, especially not a problem with heating of the motor - if they were guilty, then it would be those, not the motor getting hot.

There is no evident problem with the external wiring.

Far more likely is that the simply leaf-spring brushes inside of the motor have worn and failed, and may even intermittently be shorting out.

Your question will probably be closed, as this is really a site for electrical design issues, with repair only being on topic when it can be approached with design-level information and understanding of the circuit.