Sadomasochism and sexual pleasure
Sadism is the sexual pleasure or gratification in the infliction of pain and suffering upon another person.
The counterpart of sadism is masochism, the sexual pleasure or gratification of having pain or suffering inflicted upon the self, often consisting of sexual fantasies or urges for being beaten, humiliated, bound, tortured, or otherwise made to suffer, either as an enhancement to or a substitute for sexual pleasure.
Sadists enjoy inflicting pain whether or not it is sexual in nature. Masochists enjoy receiving pain, which, again, may or may not be sexual. Dominance and submission is a way of looking the the sadistic-masochistic distinction, a power dynamic rather than a set of acts. Not all masochists are submissive, and not all submissives enjoy pain. Not all sadists are dominant, and not all who enjoy dominating others are sadists. There is frequently a strong emotional aspect to the sexual desires, taking the form of a need for domination (to control another) or submission (the desire or to be controlled) as opposed to a simple desire for pain (which is technically known as algolagnia). The words sadistic and masochistic are now commonly used to describe personality traits in an emotional, rather than sexual sense.
Sadomasochism is about power and control. In every relationship, there is a minimizer and a maximizer. The minimizer tends to be more subdued within the context of the relationship, while the maximizer tends to be more evocative. When this delicate balance turns into a game of "Who Has the Power?" then minimizing and maximizing turns into submission and dominance, but not necessarily in the way that you'd expect. Typically, the minimizer becomes dominant, and the maximizer becomes submissive.