The difference between self-respect and ego
Self-respect is the respect you have for yourself, while ego is your understanding of your own importance.
An inflated ego may be borne from too much self-esteem, or when you realized just how important and special you are inspired by mental imbalances. People with a huge ego sometimes feel unequal to others because, deep inside, they feel worthless and undeserving of respect.
But when you respect yourself, the ego is still naturally present, but does not play a huge part in your actions. The person with self-respect simply likes themselves, which is not contingent on their own personal successes or failures.