They are caused by the interaction of magnetic fields the attraction or repulsion between magnetic poles can be increased if
the current is increased
a stronger magnet is used
the length of wire in the field is increased
a rule that gives the direction of the force on a current-carrying wire in a magnetic field according to the directions of the current and the field
the field direction is from the N pole of a magnet to the S pole
the current direction is from the + terminal of a battery round to the - terminal. The rule only applies if the current and the field direction are at right angles