Rosin paste flux

Flux is used to clean the parts what you are going to solder fro oxidation. There are many types of flux: liquid flux, flux paste, flux pen and a lot more. Never don't use acid fluxes on repairing electronics because they can mess up everything.
Liquid Flux
Flux pen

Flux pen

Acid paste flux