Hi,
A virgin is most commonly someone who has never had sexual intercourse; this usually involves a penis entering the vagina during sexual activity. Masturbation is the act of touching one's own body in a pleasurable way; it is not the same thing as having sexual intercourse.