It may sound basic but have you checked to make sure the screen rotation lock isn't on? Pull down the notification panel at the top and tap on Auto rotate. Tapping it once will put lock it on portrait and tapping it again will unlock it and place it in auto rotate mode. Outside of that I'm not sure what else it could be.