If your iphone won't rotate when you turn it sideways, it could be because the portrait lock mode is on. Try turning off the mode by tapping the circle icon with a lock symbol.