The spades were on the wrong black and white wires they were switched. The grommet to hold the cord in the floor cleaner vacuum was not big enough for the thickness of the wall of the cleaner to hold the cord.
Result was the cord moved out of the vacuum body.