Quite often cables corrode inside terminals and become intermittant. Try either new cables or when it appears dead, run a jumper wire from the ground terminal to the frame and then from the hot side to the the starter terminal, If either one of them spark, you have a cable that loses continuity under high amperage.