It might be because of a software setting. Here is how to fix it.
Disable Shake to Shuffle on iPhone / iPod Touch
* Tap on ‘Settings’
* Scroll down to and tap on ‘iPod’
* Tap the on/off switch next to “Shake to Shuffle” to disable this feature
* Exit settings and listen to music as usual