I was wondering how can someone tell if another person has had sex?

Like how can you tell someone is a virgin or not physically?

If I go to the doctor's how will they know that I am a virgin or not I read that your hemen can break by doing sports and other stuff not just from sex so how can a doctor tell if someone has had sex or not?

Can someone please answer these questions I'm just curious to know about this