Here’s a link to the ifixit Nokia 6010 Charger Connector Replacement guide.
You can use it to gain access to the connector and then test it “out of circuit” using an Ohmmeter to make sure that all the connectors are OK and not broken or have lost tension.
If the connector is faulty, getting a new replacement part may be difficult.
I have searched online without success. You may have better luck.
An option to consider if you want to fix your phone, is getting a faulty Nokia 6010 advertised as faulty good for parts - examples only and scavenge the part from it. Scroll down to the list to find cheapest faulty phone. Be aware that the connector may be faulty in it as well if they don’t specify what the problem is.
Alternatively if you just want to have that particular model phone and cannot find the replacement part, there are also very cheap working models available in the list as well.