Very strange

Sometimes when i take 100mg viagra it doesn’t work, but if i succeed to ejaculate it start working even in the next day! It is very strange , and i can’t think about anything that can cause that.

What is the machanism of orgasm/ ejaculation that can cause that?