These cities and towns offer affordable housing, strong job markets, and family-friendly neighborhoods