Following up on Majid’s comment here, in answer to this question I went the whole cliche and mentioned building up respect.

Teachers start by showing respect for pupils by planning fantastic lessons, showing an interest in individual pupil’s progress and spending time outside of lessons working with kids.

Pupils then want to work hard and behave well because the teacher’s shown respect and the pupil is beginning to respect the teacher.

Wonderful, utopian pupil teacher relationships!  BUT actually workable, if we allow teachers the time to plan the fantastic lessons and have the time (and energy) to spend time outside of lessons working on individual projects.