Have you activated the lock with his side button of your iPad (next volume buttons) ?
To disable this option , again press the side button or follow this procedure:
Access to Settings > General > The side button is used to , and touch Lock Rotation.
We advise you to check the volume in Settings > General > Sound.