Thanks for choosing health care magic for posting your query.
The process of erection and ejaculation are psychological and physical both. If you had no problem with your wife and now when you have a problem with your girlfriend, it is very likely to be psychological. You dont need any medications, but you need some sex therapy
sessions to help you solve the problem.
Hope I am able to answer your concerns.
If you have any further query, I would be glad to help you.
In future if you wish to contact me directly, you can use the below mentioned link:
Wish you good health,
Dr. Srikanth Reddy M.D.