The output of the charger can be measured. Sometimes the connector gets damaged. My local repair man checks for free. A new charger Issy not too expensive. Do you know anyone with the same make our charger output you could borrow to see if it works?
What is ransomware and how do I protect my PC from WannaCry?