Uncertainty Quantification for Forward and Inverse Problems of PDEs via Latent Global Evolution