You can book train tickets online through the official website of Pakistan Railways or visit the nearest railway booking office.