Amongst the excellent troubleshooting questions that Grim posted, there’s one more …
Even though you don’t hear anything while playing, can you record onto a MIDI/Instrument track, and do you hear it play back o.k. after recording ? (If that is the case, seems you have simply disabled MIDI Thru )