How do state and local party organizations contribute to a candidate’s campaign, and how important are these functions to candidates’ overall success?

How do state and local party organizations contribute to a candidate’s campaign, and how important are these functions to candidates’ overall success?