Borax is used mainly for forge welding, sometimes brazing. It cleans the metal of oxides and creates a barrier for the oxygen to avoid the formation of oxides.
Traditional fluxes includes ashes ( rice straw for the japanese, fern, ect.) powdered glass and some sands.
But borax is more convinient and easy to use I think.