Thirty-eight people were injured in a train accident in northern Egypt on Thursday, the health ministry said.