Imported from the Apple Support Forums via the Wayback Machine 🔗
We can't diagnose that issue remotely, sorry.
The only thing you can try is a forced restart of your iPX:
Press and quickly release the Volume Up button. Press and quickly release the Volume Down button. Then press and hold the Side button until you see the Apple logo. When it appears, release the Side button, wait for your iPhone to restart, then test it.
If you have no improvements, it could be a hardware failure.
Make an appointment at an Apple Store or Authorized Service Provider and have your device inspected: