In my opinion, the best tool to simulate DC/AC motors is MATHLAB!!!!
U can find ready to use models and simulations of DC/AC motors at:
h**p://www.ece.umn.edu/users/riaz/macsim/readme.html
the file <electricdrives.zip> contain all the simulations in MathLab.
Also take a lock at the amazing videoz that explain haw a motor work!!!
If you can obtain the parameters of the mathematical model (for example using the tool sugested by Robin Hood, or calculating them by hand) the simulation is verry simple