Quoted from Jeff1960:...also the green ground was mostly grounded but may have been loose and possibly lose contact.
If the ground had anything to do with this problem, tightening/loosening the connection to the machine would make no difference assuming there's still a ground connection at the wall outlet.
The ground in a three-wire cord is only there for personal safety in case something goes wrong. Any piece of equipment (otherwise properly wired) does not depend on the third wire (earth ground) to operate; only the hot(s) and neutral.
It sounds like the hot wire in your cord/plug was internally touching the neutral or ground. This damage can happen if the cord gets pinched, smashed, etc., or something went wrong inside the plug itself.