IPhone 5 charger not working

Ok so I got my IPhone 5 on Sept.1 so I've only had it for like not even 2 months and the charger already stopped working! At first it would only charge if I held it in a specific position and that lasted for about 10 minutes until it stopped working completely mind you I have the only iphone 5 in this house so I either have to buy a new one (which I have no money for) or find a way to fix it. What should I do?

You have to buy a new one:/ the end of the chord where you plug in your phone broke. This happens alot with headphones to.