Planes do fly over the Pacific. If an engine fails it depends on how many engines it has, a multi engine plane just shuts it down and flies slower. In order to gain type certification all commercial aircraft rated for overwater flight must be able to continue on one engine.