If the power adapter is good and plugged in to a known good outlet, I would suspect the jack on the laptop.
Is there an LED that lights (or should light) when plugged into the line adapter - does it light? Is there any looseness in the jack?
Very common for laptop jacks to need repaired/replaced. May be worth a trip to a good repair shop unless it is covered by warranty.
Good luck.