Normally a computer will stop recording after a few seconds when it isn't hearing what you are trying to record. So if say the headphones mic isn't being picked up and only the internal mic is, then it may not hear things and then turn off the recording.
Are you sure that the microphone on the headset is working correctly? And if so, are you sure the jack you are connecting to is either for a mic specifically or is a combo one?