You need to provide more facts. However, a long time ago, the social security office would issue SS numbers even if you didn't have a green card or US citizenship. You need to talk to an attorney who can help request your immigration file via a Freedom of Information Act (FOIA) request.
The Canadian Embassy handles Canadian Passports. Also, it may be that you qualify for a green card under the little known and apparently little utilized Registry program. To make this determination, we would need to know more. You need to consult with an immigration attorney.
This answer is of a general nature and does not in any way create an attorney-client relationship.