How Political Parties Influence Voters