Anthony Williams denies trying to kill 10 people on board a train which made an unscheduled stop.