Check that there's a good earth to the negative side of your battery and to your motor, I had similar issues and ended up being a loose negative lead where it earthed out to the body if the car. Also make sure you have good contact on the terminals of your battery (little bit of boiling water and a wire brush). Make sure they are tight and free from corrosion. Hope this helps