You need to continuity test the blue wire then, chances are it may have an internal break, and when it moves around with the engine it intermittently goes open circuit.
It may sound daft but if the battery light isn't on when you turn the ignition on your battery won't be charged.