Can i fix my iphone on my own?

I have 4S and it has worked fine for over a year. Today the battery died and when I charged it it won't charge. This is the second iPhone that has done this. Any one know how to fix or why it does this?

Maybe if you had an app that could have had a virus and it defected the phone or it is just an apple glitch, try asking your carrier. This has also happened to me.

Do not try to fix it yourself, you may end up damaging it. Take it to an authorized repair center and they will do the rest for you.