This could be due to a faulty charging cable, charger, software issues, or battery problems. Ensure you're using Apple-certified charging accessories, restart your phone, and check the charging port for debris. If the problem persists, consult a professional.