Spain has begun a trial for 24 suspected al-Qaida members , including three accused of helping plan the September 11 , 2001 terrorist attacks in the United States .