Controlling the population imbalance of a Bose-Einstein condensate by a symmetry-breaking driving field