answer a phone call u cant hear them and they cant hear you

i brought a iphone 4 off ebay and I would like to no if anyone can help with. when u answer the phone to a call you cant hear nothing and they can't hear you. Does anyone no what this is and what I can do to fix it
Cheers