Your phone might have gotten corrosion on the logic board, you can book an appointment at repair shops or you can fix it yourself with isopropyl alcohol or baking soda and water.
open