How do we judge the direction of a sound?

We can judge the direction of sound only because we have two ears.  The sound waves reach the right and the left ear with a small time difference because the ears are at slightly different distances from the source of the sound. The eardrums vibrate, and the ear ossicle transmits the impulse to the inner ear. The inner ear sends it further to the brain where the signals from both ears reach at marginally different times. The brain calculates the direction of the sound from the tiny difference in these times.