Is Scotland a nation or a region?

When Scotland became part of the United Kingdom did it stop being a nation?