I'm not a teacher. Just speaking as a native speaker, I doubt that there is any <em>useful</em> rule or explanation.
It is pronounced one way in <em>bringer, clinger, pinger, singer, winger, zinger. </em>
It is pronounced another way in <em>finger </em>and<em> linger.</em>
And, of course, a third way, like a <em>j</em>, in <em>binger </em>(one who binges) and <em>ginger.</em>
As a practical matter, English just isn't spelled phonetically. I think of letters in English as just memory aids, that <em>help</em> us remember the the sound of the word. In US schools English is taught through a mixture of two techniques: phonics (looking at individual letters), and sight recognition (learning a word as a unit from the total appearance of the whole word). We are rarely taught spelling or pronunciation rules. When in doubt, we don't try to remember rules, we check a dictionary and memorize what the dictionary tells us.
People often know words from reading but do not hear them spoken for decades. It is quite common to hear a native speaker say "Oh, really, is it pronounced <em>that</em> way? I've been saying it wrong all my life." I won an argument with my English teacher in tenth grade about the pronunciation of the word "pagination." (He thought the first syllable was pronounced like "page," but it is pronounced to rhyme with "badge.")