Easy fix, been a few threads on it. I sorted a W210 temperature and gear selector a while ago.
Pull out the cluster, strip it down and put a wooden toothpick behind the ribbon cable to keep pressure on the connector.
There's other "proper" ways to fix them by soldering in new connectors, i've got it on my computer somewhere if you want it let me know.