The ear consists of three basic parts - the outer ear, the middle ear, and the inner ear. Each part of the ear serves a specific purpose in the task of detecting and interpreting sound. The outer ear serves to collect and channel sound to the middle ear. The middle ear serves to transform the energy of a sound wave into the internal vibrations of the bone structure of the middle ear and ultimately transform these vibrations into a compressional wave in the inner ear. The inner ear serves to transform the energy of a compressional wave within the inner ear fluid into nerve impulses that can be transmitted to the brain. The three parts of the ear are shown below.
The outer ear collects the sound waves and passes them through a tube to a cavity in the middle ear. Its peculiar funnel like shape helps to collect and pass sounds into the middle ear.
There is a thin membrane in the cavity of the middle ear called the eardrum. When a compression in a sound wave reaches the eardrum, the pressure outside it increases and it gets pushed inwards. The opposite happens when a rarefaction reaches there. The pressure outside decreases and the membrane gets pulled outwards. Thus, sound waves cause vibrations of the membrane.
The auditory nerve connects the inner ear to the brain. The inner ear has a structure resembling the shell of a snail. It is called the cochlea. The cochlea receives the vibrations coming from the membrane and converts them into electrical signals which are sent to the brain through the nerve. The brain analyses these signals.