State the rules of your classroom on the first day of class or soon after. Once you have established the guidelines, immediately start enforcing them. If you want students to respond to you, you need to be fair and consistent in your discipline management, even with the student that gives you the most trouble. Ensure that the students know what the rules are and the consequences for breaking the rules.
Enlist your school's help. Most schools will have a discipline guideline in place. Follow it and seek the help of your administrators and other school personnel. The Discipline Action Plan, also known as a referral, is a tool that teachers have that can solve disruptive behavior in class. If students know you're serious and are using all the resources available to you, you will get the respect you desire.
Avoid going overboard with your classroom management plan. When students are on task and giving you the respect you deserve, be sure to praise them and let them know that you appreciate the class's good behavior. Don't focus a lot on the issues you're having in class while teaching the class. If things are going well, good. When things are not, correct it and get back on task.
Learn about your students. The more you know about your students and the more you talk to them one on one, the harder it will be for them not to respect you. Students want to know who you are and what you're about. If you take an interest in them, they will take an interest in you. Ask questions such as "Hey, Mikey, how was your weekend?", "John, did you see the Steelers play this weekend?", and "Sarah, how did your competition go?"