For the 1st reaction: methoxy is also a strong o/p director, and this effect goes in the same direction with the m-directing effect of the nitro group, so the bromine ends up ortho to the methoxy. When the effect of an activating group doesn't concur with that of a deactivating group, the activator prevails.