The device gets wet or got hit before the malfunction ? So probably that the screen is damaged Or maybe the charging port freed If it happened just like that you try to reset your device maybe it will work out , remember to back up your device before this operation ! reset yore phone Make hard reset good luck.
Have you tried to replace charging socket?