Mic not working on calls, viber working


Hello,
I just replaced iphone 4 screen, now microphone is working on apps like voice recorderor viber but not working on calls,
In a call when speaking I hear my own voice?
Couldt it be microphone or something in software?