Hello my name is***** am sorry you have encountered this kind of problem. More than likely the problem you are having with the charging is a bad power supply. If it is not supplying enough power to the motherboard it will power the machine just not enough to run the charger. I would advise replacing the power adapter first. If that doesn't solve the problem than it would be a motherboard malfunction.
If you would like I can locate a replacement charger.