Chosen Solution
I installed a new screen. Changed flex cable. Changed earpiece 3 times. Loud speaker works, headphones works but not the earpiece. I have cleaned the contacts on earpiece and flex cable to make sure nothing was on them. Any ideas what I can try next?
After all you’ve done, it seems there’s only the logic board left. Check connector and ideally you should be testing audio related pins..maybe a pry damage on surrounding components. Or worse, might be an initial sign of audio IC failure..hard to be of real help without testing.