We hear sound only when the sound hits the eardrum and it
Vibrates.
It is a thin membrane separating the outer and middle ear. It functions exactly like a drum. So when the sound hits the eardrum's surface it starts to vibrate just like how a drum vibrates when it is hit by the stick.