Correlation between global polarization, angular momentum, and flow in heavy-ion collisions