You use "they" when the sex isn't known, or you just use he. Or you use they to refer to multiple people.

You don't use they when the sex is known. You're literally uneducated.