Sometimes spamy questions are voted to be closed like
I'm voting to close this question as off-topic because spam
Do I flag a question as spam, or vote to close it as spam?
Sometimes spamy questions are voted to be closed like
I'm voting to close this question as off-topic because spam
Do I flag a question as spam, or vote to close it as spam?
Flag it as spam. It's the very first option you see in the flag dialog. It is a special option that will not only cause a question to be automatically deleted when enough flags accumulate, but also train the anti-spam system to block future attempts. Close votes do not have this effect.
If you see someone voting to close for such a reason, remind them to flag the question instead. If you vote to close instead of flagging, then you're really allowing the question to live by not feeding it enough flags to be auto-deleted. Questions with 4 or 5 active spam flags that stick around for hours or days are often the result of this negligence. Not only that, but you're also allowing the spammer to continue spamming both on this site and elsewhere on the Stack Exchange network.
Once you've flagged the question as spam, you can vote to close it to ensure that it remains closed if it turns out not to be spam, but if you're confident that the post is spam then you're really just wasting a close vote there.