Scotrail is the brand name for train services in Scotland. Britrail passes are tickets that allow visitors to the UK to have unlimited travel on trains in all or various parts of Britain and Ireland. That is, you can get passes at different prices for England Wales and Scotland, or just England, or just London, or London plus Southern England, or just central Scotland, or all of Scotland, or the whole of Britain and Ireland.
There are lots of different packages which you can check out on the website.
http://www.britrail.com/Pass or ticket holders must be non-UK residents, although you can get a "Britrail guest pass" which allows a non-UK resident and a UK resident to travel together. You can get tickets for all of Britain.
"BritRail Passes must be bought before you arrive in the UK and are only available to those who do not reside in the United Kingdom, unless sharing a BritRail Guest Pass. Train staff may ask at any time for proof of foreign residency."