Not getting full erection while doing sex

Patient: Hi, i m 35 yrs old man.since last two weeks suddenly i felt low in getting erection. even after trying hard, it takes too much time and effort to get . two weeks before i had sex with my partner, that time no problemcan you tell me what could be the problem and what should i do, to get the same again