what is the role of a commutator in a DC motor?

2 answers

reverses current in armature as the shaft turns so that torque is always in the same direction.
http://electronics.howstuffworks.com/motor5.htm
That link is to the commutator page. Go back one page in the link to see why the current in the armature electromagnet must be reversed every half turn.