Help for recording on a MIDI track - Ayuda para grabar con track Midi

It helps, when I connect my Controller to make a Song via Midi. I add to my Project midi Piano channel, when adding another channel and selecting an Electric Bass, the Piano continues to sound and if I add a third sound as a string if the piano is playing bass and string. I can’t get only the selected sound to play. Help with routing. Thank you