Answer
Both of these factors can influence a species’ distribution.
Work Step by Step
As environments change, a species may becomes more or less well adapted to it. This could cause it to move even after its environment has stabilized, as its adaptations allow it to thrive in new environments or cause it to fit so poorly to its current one that it moves out of desperation.