I wanted to say that your main inline fuse is blown, until you said that it is intermittent
Check it out in any case. It might be loose or the connections corroded.
It looks something like this:

Gerhard Fourie
If you want to shoot somebody, make sure you aim at his head, not your own foot.
Me
