It does sound like a loose connection. I would see a failure time as an opportunity to track it down using a voltmeter. Whole trying not to jiggle anything I would check to see of there is 12 V at the fuses, before the fuses, at the wire coming from the battery and so on.
It could very well be a ground connection problem so it might be necessary to attach a long wire to the battery negative and connect it tothe meter negative for all readings. If you find 12 V at the light bulb but it doesn't light up, then use the long wire to connect the meter positive lead to the light positive and check out the ground system with the meter negative lead. If it shows -12 on the battery negative but nothing on the metal chassis, the problem is the battery negative connection to the chassis. Just keep testing until you find the failure point. 12 V across a connection is a sure sign the connection is faulty. 12 V across a breaker or fuse means it is not letting any current through.