@Toshith,
The answer to your question (if I understand it), is that yes the magnetic field moves the train. Once the magnetic train is lifted into the air the magnets beneath it (and along the side guide-walls of the track) are manipulated by computer to change the magnetic force and the train is pulled and pushed along the track. It would be like taking a piece of iron and holding a magnet in front of it. As the magnet attracts it the piece of iron moves towards the magnet. Move the magnet and the iron follows.
It is the same thing except here field strength of many magnets is varied. It is also possible for the magnets in front pulling the train and the magnets behind pushing it.