This solution may help to repair Nokia X5 USB not charging problem issues. If the charger is being plug-in and doesn't show a charging indication on the display. You may try to check or replace the components showed on the solution below.
Nokia X5 USB charge ways
There is fuse and a diode in the circuit that protects the USB charger voltage overdrive. It needs to replace if found damaged. If those two components is okay you may try to rework or replace the charger voltage controller chip.