I solved mine with pressing the area beside the home button. Credit goes to http://leonography.blogspot.in/2011/05/iphone-4-no-speaker-sound-problem.html
open