When recording, have you armed your synth track beforehand ? (select the little red dot in the track either in the track view or the console view)
Sonar will only record the tracks that are armed when you hit the main record button in the control bar.