Shahin,
Can you give more details? It's hard to answer this in the abstract. You should be able to add a Torque block from the mechanics library or put a torque across any of the joints. If you post a simple model, and specify where you want the torque, we can be more helpful.
Regards,
Neil