Replace two-wire thermostat
Here's a good guide on thermostat wiring:
http://wiki.xtronics.com/index.php/Thermostat_signals_and_wiring

Most likely, all you should need to do is connect one wire to either W for heating or Y for a cooling system, and the other to R (or Rh for heating or Rc for cooling).