Reagan played the political game far better than both Carter and Nixon (Watergate notwithstanding). He was a master at couching effective foreign policy tactics, which often relied on detente (eg negotiating with Iran), within the augur of American values and exceptionalism that spoke to the people of the time ("we don't negotiate with hostage takers").
The former was critical to actually get things done, but a president has to realise that the latter is just as critical because you need that public support to get the former through the door.