Three-dimensional modeling of passive and active migration of living cells in a microchannel