Erictle dysfunction ruining my life

Patient: Hello sir.. i m 29yrs bisexual .. once i tried to have sex with my girlfriend it i couldnt enter her vagina.. i even tried taking silagra recommemded by doctor.. but then also it didnt worked, it dissolved our relationship. nw in few month i m gettin married …. i m mastubatring from 15yrs and it has became an habit for me. Is dats d problem?? i do get erectoins in d early morning but i m really scared to get married because of this.. Please suggest me wat is my problem and what should i do?? and also to whom should i contact???