Ratae makes a fair point, however, you might first want to try undoing all the connections and cleaning them then putting them back making sure all are securely fixed. Make sure you disconnect the battery first! Also, while you're at it, check/clean the main earth.
I had similar problems as...