DC motors with permanent magnet field poles will reverse when the polarity is reversed.
DC motors with electrmagnetic field poles will rotate the same way when polarity is reversed because both the field and armature is reversed. If the electromagnetic field is in series with the armature, these motors will even run on AC hence the name “universal motor”. Universal or series wound DC motors, are common in electric drills, saws, vacuum cleaners, etc and they run on AC or DC.
Shunt wound DC motors also run the same direction regardless of polarity but are not suitable for AC because of the field winding’s extremely high inductance.