Make sure the Attention Awareness feature is enabled on your phone. This feature lowers the volume of notifications or alerts when you look at your phone because you won't need loud alerts. The best way to turn up the ringer volume on iPhone is to disable it first. You can do this by going to Settings > Face ID & Passcode > Attention Awareness and switching it off.