Thanks guys, it was the negative terminal on the battery ,I tightened it down and everything worked