Ego, superego, and id are three components of Sigmund Freud's structural model of the psyche. The ego balances the desires of the id with the societal expectations of the superego. The id operates on the pleasure principle, seeking instant gratification without regard for consequences, while the superego represents morality and social norms.