Have you got Input Echo on (on each track) and got MIDI set up right in Sonar which with the Roland probably would be the default - General MIDI probably in Options menu item on top in Sonar and MIDI Instruments - there marked with the usual General MIDI or how you want to mark it for all 16 channels of MIDI.)
I am not sure I remember but you may want to turn off Input Echo when you do record or playback. Not sure, it has been a while since I used midi.