There is a representation of most of the power system components in Matlab/Simpower. But, you can rebuild these components from start using Matlab/SimuLink
In terms of Matlab, there are two ways to model systems you mentioned above.
The first one needs your knowledge of theoretical background, including equations of all processes, non-linear dependence, if any, etc,, that describe you system. These equations and dependence transformed to some discrete (2-d or 3-d table) or non-discrete (interpolation or approximation function) form have to be designed altogether be means of Simulink (as one of option). This way you will know about principles of operation and main links between the major parameters and valuables of your system. There are a lot of works over this topic.You can find some of it on RG.
The second way to model the system is to use SymScape (SymMechanics, SymPowerSystems and so on). This case, you don't have to know all things about your object, you have to put right variables on inputs of your system and wait answer from its outputs. The main assumptions and characteristics of such systems are usually summarized and included in Matlab help file. Also, there are a number of such an applications, some of it are placed on RG.
My best wishes!
Conference Paper Modelling of the three-phase induction motor using SIMULINK
Conference Paper Dynamic Modeling of Permanent Magnet Synchronous Motor Using...
Conference Paper An Educational Platform for Electric Machines and Drives Sim...