My girlfriend dropped her 5X in the toilet and turned it on straight away. Needless to say it didn't work from then on out.
I took the phone apart to remove the motherboard, sprayed it with Isopropanol and gave it a very gentle clean with a cotton bud.
Bought a new battery, put it back together and it's good as new, all working apart from 1 thing - the battery doesn't seem to be charging. I mean, the indicator shows its charging, when its powered off the battery increasing animation is showing, but if you go into battery stats, its just stuck on 44%.
No idea what to do, but you could try the above.