Hands down - National Railway Museum in York, UK. Could spend hours just in their "warehouse".
Honorable mention to Railroad Museum of Pennsylvania in Strasburg and Illinois Railway Museum in Union.
Love the Toy Train Museum, but I was thinking "real trains". Haven't been to Sacramento.