My guess would be that you either have a sample rate mismatch between the audio interface and Sonar, or you may have another program latching onto your audio drivers at the same time Sonar is trying to gain exclusive control.
Is it possible you have ASIO specified as a driver mode in Sonar, and you either both Sonar and Windows set to use your audio interface (that's a no-no with ASIO), or perhaps some other application has a hold of the interface (some other music program).
Many, if not most, audio interfaces seem to work better with ASIO drivers (though not always the case), but almost all will not support more than one application accessing the ASIO drivers at the same time. There is a setting in Sonar for sharing the audio drivers with other applications, but I never do that so I can't tell you if you can share with that if you are running with an ASIO driver mode. I do know that WDM allows it, but as I indicated, most interfaces produce much less glitchy and better sounding audio when you use appropriate available ASIO drivers.
So, please check out the above, and see if any of that applies to your situation, and post back with your findings.
Thanks,
Bob Bone