Why does my accelerometer stop working after minutes of resetting?

i dropped my 6s+ in the water by mistake after drying every thing it didnt turn on , i opened it and changed the battery . every thing is working fine except the accelerometer . it works when i reset the phone but after 3 minutes it stops working .

any ideas how to fix it ?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0