Your next pocket travel guide
Upvote:5
You cannot use NIE for entering Sweden. And since your visa has expired you cannot enter neither Spain nor Sweden at all. NIE does not give you permission to stay in Schengen area.
You'll have to apply for a new visa.