There are a few possibilities: the charger is bad, the jack on the laptop where you plug in the charger is bad, or the motherboard is bad. It would be difficult to determine which of these it is from here; a computer repair shop would have equipment like a multimeter to help determine which it is.