What are the differences between the "line ahead" and "line abreast" formations in naval warfare? Which is more likely to lead to the (advantageous) of "crossing the opponents' T" (or being crossed)?
Line abreast is sailing side by side, the line being perpendicular to direction of the motion (it's not an exclusively naval term - the formation exists for land forces and aviation as well).
Line ahead is a regular naval line of battle - ships sailing head-to-tail in a single line.
The comparison tactics wise depends somewhat on what kind of ships you have - e.g. latter-day-age-of-sail ships of the line, galleys, or "modern" battleships/dreadnaughts.
I'm going to answer for oared warships, such as dominated the Mediterranean from early times until the Battle of Lepanto in 1571 and afterward.
Early warships had, as their primary method of fighting, going alongside each other and fighting hand-to-hand. In this case, the line abreast was the right thing to do, as it would be easy for a line abreast to start doubling up against a line ahead.
Later on, methods of attack were developed that used the bow primarily. These include the ram, the Roman corvus, and guns on Renaissance galleys. In this case, line abreast is even more important, as this would cover the vulnerable sides and present the offensive bows to the enemy. There was a limit as to how many ships could be in a formation, though, as the galleys would try to stay side-to-side with neighbors. As the center ship moved slightly, the ships next to it would move a touch more, and this would propagate like cracking a whip so the end ships would have to make drastic movements.
The Battle of Lepanto is a good illustration of this. Since a line of galleys could be only so long, both the Christians and Muslims divided their fleets into three lines and a reserve. with the exception that the Muslim left (on the seaward flank) was deliberately overlong, accepting a disordered formation for a chance at outflanking the Christian right wing. (That did actually work, but the Christian victories in the center and their left meant that they won the battle.)