Was carlisle in cumbria UK ever Scotland and when?

No, Carlisle, Cumbria, UK, was never part of Scotland. Carlisle is a city in England and has been since the 12th century.
Copyright Wanderlust World © https://www.ynyoo.com