Download an app called "sensor monitor" to check gyro/accelerometer value, if check fails, restore the software, if it still fails then it is a hardware issue.
open