Hi,
In the center of your power adapter plug that goes into your computer, there is a little pin that your laptop uses to communicate with the power adapter. Somewhere, that has broken. If you still have your computer in warranty, email Dell, andthey will send you a replacement one.
If you don't get it replaced, your computer will still run from the power adapter, but probably won't charge.