How to fix IPhone 5 charger chord?

I just recently got my new iphone 5 and my charger hasn't been working lately. It is too bent at the tip near where you plug it into the phone and i used to have to bend it in different ways and it would charge but now it doesn't work! How do you fix this?

You'd better buy a new one.