A focus on social issues and not the economic worries shared by many voters was a miscalculation for the Democrats.