My Samsung phone doesn’t charge. What to do?

As my Samsung Galaxy Grand Prime getting older new problems are popping up. Recently I was struggling to charge my phone. When I plug it in, It was charging and stop charging frequently almost like the twinkling lights. Then I removed my battery and found out that one...