Are you trying to use transport controls on a midi keyboard? If so, you probably need to configure those controls in Sonar using ACT. Search YouTube for a video on how to do it.
Also, make sure if you are recording you arm a track - can't tell you how many times I've hit the big red button without hitting the little red button and wondered why nothing happens.