Book a window seat
The window is the best seat for sleeping, for two simple reasons. You have a wall to rest your head against, and nobody wakes you to reach the aisle. The aisle seat, by contrast, exposes you to the trolley, the neighbour getting up, and the aisle lighting.
Avoid the last row (often non-reclining seats, close to the toilets) and the rows just in front of an exit. Book early: the good windows go fast. A tool like SeatGuru flags problem seats plane by plane.