Learning their names is pretty key. If you can call them out on stuff and scold them every time they slack off and start talking eventually you'll hammer them into submission. Ideally every lesson is fun and all the students are eager to participate, but realistically you often just have to be forceful and get them into it first. Developing a punishment and reward system (ie: stickers, candy, etc) often works well too.