Use Edit | Transform | Rotate 90 degrees left,
Rotate 90 degrees right,
Rotate 180 degrees,
Flip horizontally or
Flip vertically.
These can be applied to
If more than one of these is possible, a dialog asks which one to use. Each button explains what it will transform, and unavailable buttons explain why they are unavailable. For example, rotating by 90° is only available for whole pages (unless the page is square), because all frames of a page must have the same size. The selection is preselected if there is one; otherwise your previous choice is. Press Enter to accept the preselected choice. If only one of these is possible (e.g. a single image without a selection), it is applied right away without asking.
To straighten a tilted photo, rotate it this way and then crop away the empty corners.
Hold Shift while using the Transform tool to rotate in 3D, skew, or move the corners individually. In the Transform selection dialog, Pitch and Yaw rotate in 3D, and Rectify removes all rotation and distortion.
To rotate or flip many files, use Batch convert with a Flip/rotate step.