The blood has not completely left your penis, it is slowly leaving
By sucking and kissing your wife deeply.
Many times this does occur - with erectile dysfunction medications.
You might be under stress and not able to concentrate. Or you could have taken some medication that affect your sex drive. Or you simple lost an erection due to not feeling turned on anymore.