General Motors has sold its US medium truck business to Navistar.