During ejaculation the smooth muscle in the wall of the vas deferens contracts , That pushes the sperm toward the penis . During ejaculation the smooth muscle in the walls of the vas deferens contracts reflexively , thus propelling the sperm forward .