Yes whales do have ears.
In fact whales have a very acute sense of hearing and rely heavily on sound to navigate the ocean, find food, keep track of their children and communicate a number of other things to one another such as a desire to mate, to alert others when there is nearby danger or to acknowledge to their pod when they have found a large supply of fish.
Since sound travels four times faster in water than it does on land it gives whales with their highly attuned since of hearing a big advantage in the aquatic world.
Various whale species are able to hear different frequencies than humans and can listen to sounds that have occurred miles away.
Not only do whales receive sound through their ears they may also receive it through their jaw which helps sound travel to the whales ear bone for improved listening and frequency range.
Toothed whales use a technique known as echolocation which allows the whale to bounce sounds off of objects in the environment and gain information from the echo that returns to them such as the distance of an object, how fast its moving, how large it is and whether it is dense or hollow.
Over the decades many man-made ambient noises such as sonar (from submarines), loud boat engines noises, explosives and loud aircraft have become more and more common raising a big concern regarding the whales ability to survive in its environment.
These sounds have made it difficult for whales to rely on their hearing or echolocation to pinpoint potential prey and navigate the often pitch-black ocean.
Some of these concerns include the possibility of stranded beached whales due to difficulty navigating the ocean or distractions caused by these noises, permanent damage to tearing and hemorrhaging near the whales ear and brain tissue, possible decompression sickness from raising to the surface too quickly and difficulty locating food because of ambient interruption during the use of echolocation.