Thank you for your query on Healthcare Magic.
Night time ejaculation is normal thing in young people as the produced semen should go out in some way.
Coming to erection dysfunction, I suggest you to consult a urologist
or andrologist for the evaluation to look for any problem.
Hope I have answered your query.