The aproximity sensor not work

I buy the LCD and the touch screen on eBay all was ready to mount when I turn on the cellphone all was fine them the LCD turn off i press the power bottom and run normally at the pass of the second do the same again it was normal with the broke screen when I put the new one I got that problem

What could I do to fix that problem?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0