i had that problem with my samsung galaxy s3 neo . it pause charging and whenever i try to open an app it shows that message " unable to open this application. your device is overheating" but actually it's not . there is a damage in the temperature sensor because of water. i've been searching for a solution in the internet . i put the motherboard in rice, i dried it with air-drier but it doesn't work .but finally i found the solution and it works 100000% . water causes mineral building on the mother board which disrupt the phone functions.so we need to clean it . and finally i found the solution , all you need is alcohol and teeth-brush , clean the motherboard with the alcohol using the brush .