Hi.. this is a long lost thread.. but I think I can contribute a solution.
Its not a hardware problem. In fact I realize its coming from where the problem starts, when I did put a new "capdase" casing..
ok directly to the cure.
1. you go to setting > general > sound
2. play around with your volume button and the "Ringer and alerts" volume bar. This is where you can hear the sound from the speaker.
3. you may want to play around with the "change with button switch".
4. play around with the volume button, you shall see the word "headphones" now missing from the volume bars.
5. keep playing the sound and hear the nice speaker now speaking again.
6. back to General menu, and back to setting, try this by Keeping playing around with the sound button where the "headphones" words are not with it (THIS IS IMPORTANT).
7. hit home button, and try your apps. You should now have them in speaker again
I guess the problem came on my ipad is when I did install a new capdase casing, the button were pressed randomly, switches get switched, etc. And my ipad reboot its self... a weird behaviour. I think I'm going to make holes for button in my capdase casing. It pressed buttons inadvertently resulting to a weird behavior.
The key for my problem is on step 6, where you have to trick-force the OS to leave "headphone" mode
Thanks and hope it helped.