You can try a couple things.
1- Try closing and reopening the project. Sometimes this helps.
2- Save the midi and delete the track. Insert the same VST again and drag the midi to the new track.
Sometimes its a flaw within Sonar and sometimes its simply a matter of something strange with the hardware and/or the routing. You can also try hitting the midi engine button. Reset it, though im not sure if that will help.