I finally got it fixed.

It turns out that the conduit I was using is made of aluminum not steel and for some reason it was not good enough to shield the 3 phase power cables to the motor. I changed it to steel and it works fine now.

I also fixed the isolation problem thanks to your sugestions Bruce.

Thanks everyone.