This is probably one of those problems that we'll never fully understand. One issue, if you got shocked then something isn't grounded right and I would check on this with the new motor too. Hope it works out for you.
Al