Iphone all of a sudden not charging?

I have the 4s. At first my iphone when connected to my pc, it couldnt be read but now it also won't charge when plugged on the outlet. I'm now convinced that it is the usb cable because my brother's ipad was also not working when i connected it and my iphone charged when i used his. But the other weird thing is that when i turned off my iphone, i plugged the charger on the iphone while off, then it made it turn on. But when it turned on, it is not charging, it only made it turn on. Is this charger still fixable? I already have a new one that i bought online but that will take a couple more days to get to my house. Sorry for my english, it is my second language.

I bought a new chord on amazon (low price) and never had an issue, make sure its not coming from china though or you could end up with garbage.