Chosen Solution

i have iphone 4s now having trouble in while charging,if i plug my phone in on condition into charging adaptor phone not charge but i plug in off condition phone will charge so please help what can i do

First thing to try is to clean iPhone charging port with clean toothbrush and small amount of isopropyl alcohol. If still problem, nest step is to replace the iPhone charging port assembly, which includes the home button flex connector and the lower mic. You can test the new part first, by just removing the back cover, the flex cover plate, and connecting the new flex to see if it corrects the problem, before taking the whole iPhone apart.