Application for a new or a replacement social insurance number card can be made through Service Canada.
For full information and application forms, please consult the Social Insurance Number: General Information section on their website.
The issuing authority in Canada is:
Service Canada
Social Insurance Registration Office
P.O. Box 7000
Bathurst, NB
E2A 4T1 Canada
Tel: 001-506-548-7961
For additional information, you can call Service Canada toll free from Spain, Monday to Friday from 8 am to 8 pm Canadian Eastern Time, by dialling 900-98-15-81.