I assume you turned the volume all the way up? Can you hear anything?
I once had an iphone with NO sound out of the earpiece (came that way out of the box) and turned out it was a manufacturing defect and needed to be replaced. Not sure what would cause it to have SOME sound, but not loud enough.