Why do electrons move in specified direction when the conductor is connected to a battery?

When the ends of the conductor are connected to the terminals of a battery, a uniform electric field is set up throughout the conductor. This field makes the electrons move in a specified direction.