Sometimes it happens that your iPhone 4 only turns on when it is connected with a charger. In order to resolve this issue, all you have to do is to replace the capacitor highlighted in the following iPhone 4 Circuit board Image.