How was the other fan connected to the thermo switch?
You could just use bullet terminals (which is on your new fan) to connect to the thermo switch, just need to get the polarity correct otherwise it will spin the opposite way.
The black wire can be connected to a good ground