Have you already put gravitational acceleration value in Mechanism Configuration Block? To enables the gravitational effect to your multibody, you need to put x y z gravitational acceleration value in the block.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1675391/image.png)
To see the displacement, you can use motion sensor and set it parallel to the joint.