Did you try turning it off and then back on?
Today, my iPhone X, which has had the screen replaced decided it didn't want allow me to hear while making a call. Speaker would work, as did bluetooth. I turned off bluetooth, and still nothing. My next step, I shutdown the phone and powered it back on and now things are working as they should. At times I feel like I am stuck in a Windows XP vortex with my iPhone and iPad. Tell me again, why was this thing worth over a $1,000?