Check the chord from the wall if there is a fuse blown in the chord it can be fixed by getting a new one or universal chargers have become cheaper lately. They did have a lot of recalls on chords and batteries. I had this problem on three laptops.
Replace the chord from the wall it is probably the fuse in the chord. Universal chargers are cheaper than they were a few years ago. You can check the recall status it might be free. Make sure it isn't trying to charge wirelessly if that doesn't work