Hello Naga and a Happy new year!
Thank you for your question on the topic https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144-FOC-using-Hall-sensor-motor-can...
First I do recommend using the latest Field-Oriented Control of PMSM Using NXP™ S32K144 Kit Version 1.2.0.0
The model above is using the Hall sensors to read and estimate the motor speed, this will be controlled in the Speed Control block:

This Speed control technique will maintain the motor speed to the Required input Speed and will also use the Current Controller to adjust the Torque requirements based on the Speed reference, for example if the speed decreases, than the current controller will increase the current output Iq and this will result in a Torque increase of the motor.
Off-course there are other motor control techniques, and one of them is Direct Torque Control (DTC), that is a bit more complex and requires a different sensor topology or a flux observer in order for the system to get the position of the motor shaft (rotor).
We can take a look for DTC in https://www.mathworks.com/help/mcb/gs/direct-torque-control-dtc.html

If we take a look above, DTC needs another Control Loop for Torque Flux estimator and also the Sensor decoder, in order to calculate the rotor position of the motor.
To get the position feedback, it will require a Quadrature Encoder sensor connected to the motor shaft, that is not present on the S32K144 Kit.
There is another option to use an Observer in order to estimate the rotor position, one example is Flux observer, but hasn't been implemented by Mathworks in the model above. Here is the link for Flux Observer https://www.mathworks.com/help/mcb/ref/fluxobserver.html
Let me know if this helps and you have more questions,
Stefan V.