Prostatic gland sitting around the bladder neck may affect flow of urination with its enlargement with advancing age as you described. Prostatic enlargement, however, has no cause and effect relationship with weak erections. The two events of poor flow and weak erection may, though, occur together as both may occur with advancing age.