It sounds like the proximity sensor. If a reboot doesn't fix the problem, go to Settings - Apps - Show system apps - Phone - Storage and clear cache. Then reboot. If THAT fails, go back to the Phone storage and clear data, too. Reboot. Let us know if that helps.