Motivating students to do pre-class work, and making the most of class time

In blended and flipped teaching and learning, it’s crucial that students engage in out-of-class preparation. What are effective ways to encourage this, and how does it integrate with what happens in class?