If you can’t hear the ringer when there is an incoming call to your iPhone 3G, you may have overlooked whether or not the ring/silent switch is set to silence the ringer. The ring/silent switch is above the volume switch. If you can see orange on this switch, it’s set to vibrate. Switch it to ring and you should be all good.
If this doesn’t help, you may want to consider resetting the iPhone.