Moto X display black on call

hey I changed Moto x ear piece after that when call display gets black till call in progress even sleep button not worked ,
I cleaned nearness sensor but no luck .
Thanks