Much of July’s job gains were in the wholesale and retail trade sectors, which added 21,000 positions — though the sector is still down 50,000 jobs from a year ago.