There could be several reasons why your iPhone won't charge, such as a faulty charger, a damaged charging port, or a software issue. Try using a different charger or a different power source, and if that doesn't work, consider taking it to an Apple Store or authorized repair center.