How you know that you a virgin?

I would just suppose that you know your own actions best.

If a woman has had sexual intercourse with another man, then she is no longer a virgin.

If a man has had sexual intercourse with another woman, then he is no longer a virgin.

This is the most common interpretation of "virginity" of humans.