Although there are cab ranks at many large railway stations, this is often not the case for smaller ones.

http://www.traintaxi.co.uk/  is a site that will give you the number of any taxi firm serving your destination station.