This depends on what passport you have. Spain and France are both members of the European Union and are also in the Schengen area. Holders of US and Canadian passports do not need a visa to enter the Schengen Area for stays of less than 90 days. However your passport must be valid for at least 3 months after your expected date of departure from Spain or France. It is recommended to have 6 months validity on your passport upon entry.

If you are a U.S. or Canadian citizen you can apply to enter the Schengen area without a visa for a period of three months within each 6 period. If you spend 3 months in the Schengen area during any 6 period, you must wait another 3 months before you can apply to enter the Schengen area again without a visa. If you do not meet these requirements, you should apply for a visa.