I haven't used midi on my computer. I did have that problem with my M1 and whatever I own now. I haven't read through all the responses. But, what I was doing wrong was, putting the sound on the wrong track. Everything seemed to default to the piano. Once I knew the channel I had the midi on, I'd change that instrument to the drums (or whatever instrument I wanted), and it'd be fine.
What I'm saying in long form, you might not know exactly where the "box" is to change the sound. You might think you're in the correct screen, but if it's not sticking, you're not. There's usually one place to stick the sound.
If it's an actual midi problem, you're either sending or receiving on the wrong midi channel. I'm sure you know that already.
Colin Clive said it best. Did you know he died a few years after Frankenstein?
Never mind. I see it says SOLVED in the subject.