Use an original Dell charger on your laptop. Using aftermarket ones or different model chargers that are not compatible will cause the laptop to only run on wall charger but not charge the battery.
open