You can determine whether the charger is broken, replace another iphone8\/x to see if it can be charged.
Determine if the iphone's wireless charging coil is damaged and test it with another charger that can charge normally.