From a democratic socialist in New York to moderates in Virginia and New Jersey, Democrats found success by focusing on the cost of living — not culture wars.