I had 3 z3 compacts. Two of them had this issue. While removing from the case or over sometime of phones life, screen gets loose where proximity sensor is. I just use the power button as it was mentioned some posts back or just press top left corner of the screen.
... View more