I've heard of this. Masturbation is intense stimulation and sex can be less so (I hate to say). And masturbation often has a lot of mind work involved such as using porn, visualizing porn and so on. This is a hard one. I'd break the habit of masturbating and see if it helps. Take a month or two off of pleasuring yourself and see if you this allows you to get adequately aroused and then orgasm. Best
My advice is to stop all masturbation and any use of pornography, depending upon how soon you will be seeing your girlfriend. Then you will build up your sexual tension and energy so that things will work out better when you and your girlfriend get together. If you still are not able to achieve an orgasm, do not masturbate. Allow your girlfriend to give you a slow handjob. At least then you will be having some sexual release with her.