Solar wind interaction with the Earth’s magnetosphere: the role of reconnection in the presence of a large scale sheared flow