The Xiaomi phone suddenly failed to charge.
If your Xiaomi phone was fine, and then suddenly doesn't charge, it must be your charger is broken.
You can change a charger to charge it and see if it can charge static electricity, if it can't charge it, it may be that the charging of your millet phone is broken, and then you have to repair it. Fix it, and then charge it.