On contact problems with thermomechanical coupling