Three taken to hospital after accident