iPhone X sound
Ok, so I am using an iPhone X and my phone has no sound. Sometimes everything is fine, but then it starts to make a crackling/distort sound and it is gone. Also, when this happens, my phone starts to bug and it can not load videos, apps, apple music, I can not hear anyone when speaking on speaker. Also, whats unusual, volume slide is moving itself, but when my sound comes back, everything goes back to normal I can use my phone properly with no problems. I wonder what is the problem I am dealing with? Is this an OS problem, or hardware or other? I don not know what to do.
iPhone X, iOS 13