I had the same problem and I found out the proximity sensor was dirty.
Do not use compressed air on the speaker that may damage the speaker and it won't help.
If you tried cleaning the front screen and or removed your screen protector and it still does not work try cleaning the sensor.
I...