wiggle the wire and it works....
this is known as the "wiggle" test
if indeed the starter works when u wiggle the wire then check the wires connector or the wire itself.
it's a high possibility that there is a break somewhere in there or just a bad connection at the terminal.
hence: when u wiggle the connection it makes and breaks it causing the start/nostart issue.