Planning a trip 12 day trip to Poland in July.

Plan to visit Warsaw, Krakow and Gdansk, any advice? How is rail (intercity) travel?