welcome to health care magic
it appears that you are pointing towards erectile dysfunction
. Earlier you had frequent erections but now it's frequency reduced. Emotional stress
is most important factor in erectile dysfunction. Whenever you will have a normal life, you functioning will improve itself. So you need not to worry for this and try to settle you issues of wife and employment.