Sounds like you might need to do what I did with a truck I had that came with several electrical problems. I bought a hot rod wire harness kit. I cut all the wiring from inside the cab and in the engine compartment. Installed and rewired the truck. It ran great after that.