Science initially struggled to match the pace of the pandemic, leaving people unclear of the best ways to stay safe from the virus, but now we know so much more – which could be essential when the next pandemic hits