The paper I shared actually doesn't support the claim of preventing infection.
The trials showed a minimal risk of adverse responses to the injection itself and what appeared to be a reduced rate of symptoms. The trials didn't cover impact on infection rates at all, that would have required proactively testing every participant for infection which wasn't done. The trials only followed self reported symptoms, meaning all the study can indicate is a correlation with reduced symptomatic infection.
The paper linked shows a reduced rate of COVID in the pool of people that received a vaccine candidate compared to the pool that received a placebo:
Again, no vaccine ever really 100% prevents infection - what they do is reduce the number and severity of cases. Vaccines are literally created to increase the human bodies ability to fight off infection - efficacy varies by age and many other factors.