Hi Sarah. You can try resetting the SMC first. Here's the link.
If you continue to have issue with the charger after this, then it could be a hardware issue. If you can borrow a charger, borrow one first and see if that works. If so, then you would need a new one. A new one from Apple is $79. If there's nobody you can borrow from, then go to an Apple store.