The accident was between two high-speed trains carrying hundreds of passengers and heading in the same direction from the capital Madrid to Seville in southwestern Spain.