Where this unit was stored will dictate the condition of the cord. Personally, I've replaced all the cords on my coffee can Hoovers. I would also check under the switch to make sure the insulation on the wiring isn't brittle. If that's the case, you can cheat and put 2 layers of heat shrink over the wiring going to the motor.
If replacing the cord, I highly recommend Sundial Wire. They sell a period correct cloth covered cord and plugs for lamps and it works great on these old sweepers.
As for the motor, make sure it spins freely before powering it on. You can potentially wreck it if the motor is gummed up. I use rubbing alcohol and 3in1 SAE 20 oil (Blue Bottle) on all my sleeve bushings.
Best of luck!
[URL unfurl="true"]https://sundialwire.com/collections/2-conductor-18-gauge-pulley-cord/products/2-conductor-18-gauge-black-cotton-pulley-cord?variant=30086332317760[/URL]