There are two ways to overcome this problem. One is to use a kind of electric current that periodically reverses direction, which is known as an alternating current (AC). In the kind of small, battery-powered motors we use around the home, a better solution is to add a component called a commutator to the ends of the coil. (Do not worry about the meaningless technical name: this slightly old-fashioned word "commutation" is a bit like the word "commute". It simply means to change back and forth in the same way that commute means to travel back and forth.) In its simplest form, the commutator is a metal ring divided into two separate halves and its job is to reverse the electric current in the coil each time the coil rotates through half a turn. One end of the coil is attached to each half of the commutator. The electric current from the battery connects to the motor electric terminals. These feed electric power into the commutator through a pair of loose connectors called brushes, made either from pieces of graphite (soft carbon similar to pencil "lead") or thin lengths of springy metal, which (as the name suggests) "brush" against the commutator. With the commutator in place, when electricity flows through the circuit, the coil will rotate continually in the same direction.
Using the ohmmeter, find the pair of wires that has the highest resistence as measured in ohms. This will give you your common and lowest speed tap. Using each of these two leads in turn, find the pair that gives you the the second-highest resistance. This should provide you the common and second-lowest speed tap and should also allow you to isolate which of the two leads from the first test is the common.
You should be able to isolate into two groups any leads which have continuity with one another. The starting circuit is likely to isolate to two leads, the running circuit may have two or more leads that show continuity. If the running circuit has more than two leads, you will need to determine how those leads are to be used for voltage or speed changes.
Suppose we bend our wire into a squarish, U-shaped loop so there are effectively two parallel wires running through the magnetic field. One of them takes the electric current away from us through the wire and the other one brings the current back again. Because the current flows in opposite directions in the wires, Fleming Left-Hand Rule tells us the two wires will move in opposite directions. In other words, when we switch on the electricity, one of the wires will move upward and the other will move downward.