A SIM card is a small chip that you insert into your phone and allows you to connect to your carrier's network. You can then make phone calls, send messages, and use mobile data through your carrier.
If you are a regular short-term visitor, or you live in Spain and have visitors from your home country, you and they might be able to use non-Spanish phones for a short while, but it may be more ...