General Motors is to lay off 1,500 hourly workers at plants in Michigan and Delaware after sales of the pickup trucks, large cars and two-seat roadsters they build slowed.