Chosen Solution

I think it is the accelerometer… but here is the issue. My phone stopped tracking my steps, then I realised my photos and videos don’t rotate. I then realised my compass and level don’t work as in al all. Compass won’t calibrate, doesn’t even move and my level is level even when the surface isn’t level. I’d like to fix this. I have been researching and no one seems to have this issue. Any thoughts, answers on how to fix??

What happened to your phone prior to this? At first glance, it is probably a logic board issue but this is not a common problem. Has your phone been water damaged or suffered multiple impacts?