This is a discussion on [HELP] iPad 2 sound problem within the iPad 2 Forum forums, part of the Apple iPad Discussions category; It's Been a few days and I'm starting to notice sometime my sound doesn't work and other times it does I have tried turning mute ...
Here are a few things you could try:
Restart your device (turn off and on again)
Reset your iPad (press and hold Home and Power button at the same time until the Apple logo appears)
Delete apps running in the background (double press Home button to reveal the multitask bar, then press and hold an app until it wiggles, remove all apps from there)
Reset all settings in Settings - General - Reset - Reset All Settings
If you used headphones, plug them in again, leave them there for some time and then remove them. Sometimes this will help.
You will recognize your own path when you come upon it, because you will suddenly have all the energy and imagination you will ever need. ~ Jerry Gillies
It could be your headphones or the headphone port
Try swapping out the headphones, to see if that works.
If it still doesn't work try bluetooth headsets to see if you can bypass the port.