Hello 3nust1king,
Welcome to Apple Support Communities!
We want to make sure the volume is working as expected on your iPhone XR so you can hear it without issue.
We see you viewed the Apple Support page for If you hear no sound or distorted sound from your iPhone, iPad, or iPod touch speaker - Apple Support
These are the steps to take to make sure the volume is all the way up:
"Adjust the volume on iPhone
When you’re on the phone or listening to songs, movies, or other media on iPhone, you can use the buttons on the side of your device to adjust the audio volume. Otherwise, the buttons control the volume for the ringer, alerts, and other sound effects. You can also use Siri to turn the volume up or down.
Siri: Say something like: “Turn up the volume” or “Turn down the volume.” Learn how to use Siri."
This Apple Support page has the full details: Adjust the volume on iPhone - Apple Support
As it sounds like you already maxed the volume while on a call, did you the steps in the Apple Support page you visited?
"If you want to try more steps on your own
If you prefer, here are some more steps you can try on your own. After following these steps, you might still need to contact Apple Support to discuss service options.
- Remove all screen protectors, films, or cases from your device.
- Check the speaker opening to see if it's blocked or dirty. On iPhone only, make sure that the receiver isn't blocked or dirty.
- If necessary, clean the speaker or receiver opening with a small, soft-bristled brush. Make sure that the brush is clean and dry.
- Go to Settings > Sounds (or Settings > Sounds & Haptics), and drag the Ringer and Alerts slider back and forth a few times. If you don't hear any sound, or if your speaker button on the Ringer and Alerts slider is dimmed, your speaker might need service.
- If you hear sound, try making a call with your iPhone and turn on speakerphone. On iPad or iPod touch, make a FaceTime call. If you still can't hear, or hear static or crackling, then your network or reception could be the issue. Try to call again later, or from a different location."
Here's the link again: If you hear no sound or distorted sound from your iPhone, iPad, or iPod touch speaker - Apple Support
If the issue continues it would appear to be hardware related, please reach out to an Apple Support Advisor for further assistance: Get Support
We hope this helps to get the sound working perfectly again.
Cheers!