That would a masochist, someone who enjoys receiving pain. Sadist is someone who enjoys giving pain to others. Underestimate the distinction at your own peril.
I will requote myself from literally one post above, though I’m not sure why I even bother: