If the wire end of your G wire is not straight or not properly corroded, the wire connection issue can happen. Also not inserting the wire end fully into the wire connector can lead to the g wire not getting connected.
That was just a preview. You need more details in this matter to get your issue fixed. Keep reading the article to know more.