If the blue wire was shorting to ground the needle would peg on full. Most likely you have a loose connection somewhere that opens the circuit occasionally as you drive. If there is gas in the tank and your needle moves between empty and whatever level of gas you have in the tank, you might...