The outer ear mainly changes sound vibration into neural signals, and the middle ear locates sound.
The middle ear includes the pinna, eardrum, and cochlea, and mainly receives outside sound.
The inner ear includes the cochlea, and the cochlea changes sound vibration into neural signals.
The cochlea is in the outer ear, and its main function is to send sound to the eardrum.