A man is doing some kind of maintenance work on a train.
A person is doing maintenance on a thing.