My IPhone 4 will not charge? - 1

It charged fine until last night when I plugged it up and it would not charge. I unplugged and replugged it a bunch of times until I rebooted it while still on the charger and it started charging and was 100% this morning. I tried plugging it in to the computer just now and it charged for a minute or two then stopped. I unplugged it and plugged it back up a few times but it did not work. I tried the wall charger (what I used last night) and it did not work either. I rebooted it and it started charging but then it stopped again. What do I do?

Try shutting your iPhone down

Use a different charger cable that one might have a circuit problem