What is it called when a person is both a boy and a girl?

The term for this is hermaphrodite and is extremly rare medical condition where an individual is born with both male and female sex organs.

That is called a hermaphrodite.