The most likely result from a layoff of factory workers in a town is that the unemployment rate will rise, at least temporarily. This is assuming the factory is in the US and all workers are full time. Other government services might also see an increase, such as food stamps, job training services, etc.