There are rail services in the UK (often longer distance routes) where buying or drinking alcohol are allowed. However, operators can decide to run 'dry' trains where you can't consume or carry alcohol on board - for example trains going to football matches or other sporting events.