Hi,
Your first step is to tell Magix what your MIDI device is. In the options of your playback parameters chooses your MIDI device from the drop down list. If you wish to just play MIDI files; simply choose MS gs wavetable software synth. That will allow you to play MIDI through your sound card. If you have a MIDI device then select that.
Let me know if that works for you,
Justin