As others have said, everyone gets a basic level of respect. To earn more than that:
Mean what you say, and say what you mean. Don’t lie or be two-faced.
Do your fair share, and take responsibility for your own actions. Don’t shove work off on others, or pass blame.
Be willing to learn from everyone and anyone. Even if someone is less intelligent than you, less sophisticated than you, and less experienced than you, they still have had life experiences that you haven’t had.
I wouldn’t say I automatically respect people but I’m always polite and treat them with courtesy and respect.
Honesty and integrity are very high on my list. I respect people who are humble with strong moral values and character traits.
I agree with Bibliovore (who needs just one more post to get good with god)* about the willingness to learn thing. I tend to really respect people that intently listen to you, and respond with true empathy. I can almost feel those people gaining more information, and insight.
I’ll second autmatically granting some respect to people, and even lying a little bit will not cause me to lose all respect for them. However, if I catch you in a lie and you try to weasel out of it or explain it away, I both not only will not be able to trust you ever again (barring a huge personality change on your part, which never happens,) but I will consider the incident as insulting to my intelligence and will lose all respect for you.