The principle on which a DC Motor and an AC Generator works respectively are:
Mechanical effect of electric current and electromagnetic induction
DC Motor works on the principle of Mechanical effect of electric current and AC Generator works on the principle of electromagnetic induction