IPhone wont charge


I tried looking for a solution to this problem and thought I would try here. My 4 year old IPhone will not accept the recharge but will work on the older IPhone which only is good for the radio sound on it and music. I tried the shutting it down with the apple logo thing and even had it off for 2 hours. I tried the Network Reset and that too was no good.

My next option I am thinking is to reset to factory settings before buying new IPhone.

Anyone else had this problem and fixed it?

Thank You