We have two ears because:
i) It helps our brain to sense that from which direction sound is coming.
ii) In the case of hearing loss in one ear, one can still hear from another.
Both statements are true.
If both ears are working well then it definitely helps us to sense the direction from which sounds are coming. But of course, in case of hearing loss in one ear, another ear can help in hearing.