I had the same problem with a screen that came with front camera and proximity sensor. by replacing it with the original one (Including the ear piece) it worked.
open