struggling to record midi data Cubase 6

I am having trouble recording my MIDI tracks on Cubase se 6. Computer is receiving data from my keyboard (midi in/out) and the plug ins e.g. halion sonic are working, with sound coming from them. However when I go to record it just records nothing. Anyone know how to fix this? Thanks