The first case may be that the ambient temperature of the phone charging is high. Batteries cannot be charged if the ambient temperature is too high.
The second case is that the charger current is too small, and the small current charger will also lead to no charge.
The third situation is that there is a problem with the mobile phone battery or mobile phone charging circuit.