A person has been taken to hospital in a serious condition after being hit by a train