Your phone is probably locked and roaming fees will be steep.
I am not sure what the regulations are now, but ask your mobile provider to unlock your phone (I "think" for free if your contract has been up for 6+months, $75 otherwise).
When in Spain get a local SIM. In Europe, receiving a...