England's struggles with spin on the sub continent continued as 17 wickets fell on day two of the first test in Galle.