Bromine displaces iodine from sodium iodide solution because it is more powerful oxidising agent than iodine due to greater reduction potential value (+ 1.06 V) than iodine (+ 0.5 V).
In general, a halogen of low atomic number will oxidise the halide ion of higher atomic num