First of all, forr best results always use a wall charger. It charges faster then a computer's USB port. Not that charging by USB is bad, but it will take longer.
If it charged properly the last time, that means something has changed or gotten damaged. Try a different wall outlet, a different wall charger (if you have one), a different USB cable, or try combinations of those until you can figure out if you've got a bad USB cable or something.
Plug it into the computer, does the computer recognise it but not charge? does the computer not recognise it at all?
Have you tried a reboot? I have heard of situations where the battery is actually taking a charge but for some reason it gives no indication that it's charging until it's rebooted.
Once you have it charging, turn it off and let it charge. Hopefully you can solve this. If nothing works, it won't charge, and the computer won't recognise it - then I'd suspect the USB port on the phone itself is damaged.