You would use 'it' if you really do not know whether it is a man or woman. for example, if someone knocks on the door and you cannot see them, or if a friend answers the phone and you cannot hear their voice. If you can tell whether it is a man or woman, it is extremely impolite to refer to people as it.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.