Something is loose or making a bad connection. Check EVERYTHING! Auto electrics never fail to amaze me with their quirks.