If you have a 2 wire thermostat, then it’ll be live and switched live, so no neutral, which is what your new one requires. Either rewire or swap for a battery operated thermostat or another 2 wire one. I think it’ll mean potential free, which means the switching can be mains or extra low at 24v.