Let $R$ be a PID and $M$, $N$ be $R$-modules. I am trying to show that $$\forall n\ge 2~: \operatorname{Ext}_{R}^{n}(M,N)=0.$$
For example $\forall n\ge 2~: \operatorname{Ext}_{\mathbb Z}^{n}(M,N)=0$.
Here $\operatorname{Ext}^*_R$ is the derived functor of the functor of homomorphisms of $R$-modules $\operatorname{Hom}_R$. It's defined using projective/injective resolutions, and long exact sequences. On the other hand the definition of a PID involves ideals of the ring, and it's not immediately clear how to relate this condition to the definition of $\operatorname{Ext}$.
Over a PID, injective modules are the same as divisible modules. A module $M$ over a domain $R$ is divisible if, for every $x\in M$ and every $r\in R$, $r\ne0$, there is $y\in M$ such that $x=ry$.
If $M$ is injective, then $M$ is divisible: indeed, for $r\ne0$, the map $\mu_r\colon R\to R$ defined by $\mu_r(t)=rt$ is a monomorphism; if $x\in M$, the map $\mu_x\colon R\to M$ defined by $\mu_x(t)=tx$ is a homomorphism. By injectivity of $M$, there exists a homomorphism $g\colon R\to M$ such that $g\circ\mu_r=\mu_x$. Then $$ x=\mu_x(1)=g(\mu_r(1))=g(r)=rg(1) $$ and we can take $y=g(1)$.
Conversely, if $M$ is divisible, then $M$ is injective. By Baer's criterion, we just have to prove that every homomorphism $f\colon I\to M$, where $I$ is an ideal of $R$, can be extended to $R$. Since $R$ is a PID, we have $I=rR$. Let $x=f(r)$ and take $y\in M$ such that $x=ry$; then $\mu_y$ is the required extension.
It is obvious that any homomorphic image of a divisible module is divisible.
Let $M$ and $N$ be $R$-modules and embed $N$ in an injective module $E$. Then also $E/N$ is injective and applying $\operatorname{Hom}_R(M,-)$ to the exact sequence $0\to N\to E\to E/N\to 0$ gives the long exact sequence $$ \dots\to \operatorname{Ext}_R^{n-1}(M,E/N)\to \operatorname{Ext}_R^{n}(M,N)\to \operatorname{Ext}_R^{n}(M,E)\to\dotsb $$ If $n>1$, we have $\operatorname{Ext}_R^{n-1}(M,E/N)=0$ and $\operatorname{Ext}_R^{n}(M,E)=0$, because $E$ and $E/N$ are injective. Therefore $\operatorname{Ext}_R^{n}(M,N)=0$.
Of course one could go with a more direct method: if $N$ is an $R$-module, then, with the above notation, $0\to N\to E\to E/N\to 0\to 0\to\dotsb$ is an injective resolution for $N$ and this shows that the homology groups of the complex $0\to E\to E/N\to 0\to\dotsb$ are zero from the second on and this is preserved by any additive functor (such as $\operatorname{Hom}_R(M,-)$).
Another way for proving this is to recall that every submodule of a free module is again free. However, the proof of this fact is more complicated than the one about divisible modules.
Note that the fact that homomorphic images of injective modules are injective is equivalent to submodules of projective modules being projective.