Decay estimates for the three-dimensional inhomogeneous klein-gordon equation and applications