Question: why does my iphone not charge when plugged into computer?
Answer: Sometimes you can only charge an iPhone if your computer is also plugged in. It could also be that the cable is fraying, the Lightning port is dirty (so the contacts can't receive the electric), the USB port is malfunctioning, or your phone does not recognize either the cable or the computer as a safe device.