What do you do if your iphone won't charge?

I went to plug my iPhone 5 in today, and it didn't charge.
i thought it might have been the wire of outlet, so i tried a bunch of different ones, and it still didn't charge.
i tried to connect it to iTunes, but it didn't even connect, like my iPhone didn't appear and i couldn't sync it.
i restarted it and it didn't work.
i know i could go to apple and they'll give me a free one, but id rather try to fix it myself.

Maybe you need a brand new charger

Try screaming at it