I is 12 volt positive Ignition
G is ground
S is tank Sender
Normal US/SAE marine senders are 240 - 33 ohm (Empty-Full)
So open circuit the gauge should be at Empty, connect to ground = Full.
If the gauge does not do this you have a bad gauge
It's always easier to validate the gauge first then to pull the sender.