Hot end thermostat connection



Hello, I’m a new user here, so sorry for quite noobish questions. I have an Anet A8 and decided to do some upgrades. Bought a new hot end and it has a 2 pin connection, where as the motherboard has a 3 pin connector. Is there a way I could plug it in, because right now, no matter how I plug it in the thermostat isn’t working. Im thinking of removing the 3 pin form the old hot end thermostat and rewiring the new ones wires thorugh it. Does the polarity matter? If yes, how do I know which wire is witch? (the connector of the new hot end thermo)