Check the person's DNA. If it's XX then she should have been (and is) a woman. If it's XY then he should have been (and is) a man.
This is not rocket science. XX = female. XY = male. Every single cell of our bodies proclaims what sex we are.
What if you aren’t XX or XY? XXY does happen.