When the Bible refers to Sodom and Gomorrah, those are cities, not people. Specifically, those two cities were burned up by God because all the people who lived there were so badly behaved. Their sins included but were not limited to sexual depravity and adultery.