Races in North Carolina and Texas will give voters their first chance to shape the futures of the Democratic and Republican parties.