The correct option is B electrons move in random directions.
When the ends of the metal wire are not connected to a battery, no electric field is produced inside the wire. Thus no force acts on the electrons in the wire. So the electrons collide with each other and move in random directions.