Check to see if the Mute function (that only mutes system sounds) is activated. On iOS 4.3 and above it's configurable; it can either be activated by the switch next to the volume control or, alternatively, by a 'soft' control in the multi-task bar, which you access by double-tapping the Home key and flicking the bar to the right.
Tim