A “musical ear” is not an innate talent but a skill that can be developed. The ear can be trained with regular aural training, interval recognition, and dictation exercises.
15 minutes of ear exercises per day provides significant improvement within a few months. Various applications and online tools can help in this process.