this happened to my phone a few days ago and i did the hairdryer trick and it worked but my phone stopped working again today and so i tried the trick again and it doesn't seem to be working so what i suggest is using the hairdryer trick as a semi permanent solution but my phone is already really broken so that should last you a while and if it happens again try the hairdryer trick and if it doesn't work i suggest getting a new battery for it