I doubt there’s any reason why trains couldn’t run on batteries. Anything that either stops and then starts again before refueling, or goes down and then up again before refueling, should be compatible with batteries due to regenerative braking. Trains have both of those properties.
Planes have neither of those properties which is what makes them hard to run off batteries.
Cargo ships also wouldn’t seem to have a problem. My understanding is that the drag on a hull increases sub-linearly relative to displacement. So a 10% increase in displacement might only increase drag by 1%. So it’s unlikely the weight penalty of batteries would be prohibitive.