That's a pretty broad question - I'd recommend watching some of the introductory videos or read the tutorials / manual. This could be a long discussion depending on whether you're looking to record either MIDI or audio, whether you're looking to apply effects, etc.
Just "preparing" a tune can be a detailed process depending on the level of quality you're looking for - (e.g. using EQ, Compression, Reverb, mastering, panning recommendations, basic mixing questions, etc) Go to the Cakewalk Sonar youtube channel - there are lots of great videos there that will get you started quickly.
If you're familiar with other DAWs or even analog consoles / analog recording equipment, alot of the functions within Sonar will be very intuitive. Once you've got a basic understanding of recroding, if you have more specific questions (e.g. I'm unable to record digital audio or MIDI, or unable to apply a certain effect, or unable to export audio to MP3) - I'm sure someone here can help you.
Hope that helps.
Russ