I have a Moto G 1st gen, never rooted or customized and the ear speaker went dead a few months after the lollipop upgrade (5.0.2). The volume bar did change but the ear speaker was silent. Strangely enough the loudspeaker was working perfectly as well as headsets.
I tried everything (factory...