Hi Ankith,
I looked at your model and connected an sine wave signal/command to the valve actuator block. The ball valve seems to work fine: positive S value opens the valve while negative value closes it. Was the problem the missing input signal to the valve actuator?