NIH has an annual budget of $45 billion - all taxes.
[1] https://www.nih.gov/grants-funding [2] https://jamanetwork.com/journals/jama/fullarticle/2775400
Clinical trials are expensive and private companies specialize in the later stages.
There is also the idea of shared risk. Government does not want to take on the entire risk
If the people of a country want the lowest prices for medicine, they can pay for them via taxes, and that includes clinical trials. Then there would be no middleman with a patent to collect profit.
If taxpayers do not want the risk, then of course they will have to compensate businesses to take the risk.
And there is no “nationalizing”. The government paying for clinical trials and FDA approval does not preclude pharmaceutical businesses from doing the same.
But there is no way to levy any global taxes to pay for it. That makes this idea practically impossible.