Hello
You can refer to the sample examples available in MATLAB to model Mechanical systems. It includes examples corresponding to Mass-Spring-Damper systems modelled in both Simulink and Simscape which can helpful in your case.
The documentation link corresponding to examples related to modelling Mechanical systems is available below:
I hope this helps....