In IVF the ovum and the sperm are fertilised outside of the body of the women, in a lab and then the embryo thus formed is placed in the uterus.
In IUI the fertilisation takes place in the womb itself. Only the sperm from the husband is washed, processed and placed inside the uterus around the time egg is released from the ovaries.