Was/were going to + base form is used:
the past (but probably didn't).
"I was going to visit my cousins over the weekenf, but they .
came to visit me instead".