"Give way," in that case, is something like "replace". So, in the last century steam was replaced by electric trains.
"Went ahead", in that phrase means just that the sale was made without any problem, "went well". You can use "go ahead" to say that something could keep going, proceed, e.g: Go ahead, press the button. So, the sale "proceeded" without any problem.