Here is an analytical solution. The solution is based on series expansion of
BesselJ
functions of first kind.
It turned out the the solution to
\begin{align*}
x^{\prime\prime}\left( t\right) & =-a_{0}\left( a_{1}-bz^{\prime}\left(
t\right) \right) \cos\left( \omega t\right) \\
z^{\prime\prime}\left( t\right) & =-a_{0}bx^{\prime}\left( t\right)
\cos\left( \omega t\right)
\end{align*}
With initial conditions $x\left( 0\right) =0,x^{\prime}\left( 0\right)
=0,z\left( 0\right) =0,z^{\prime}\left( 0\right) =0$ is
\begin{align*}
x\left( t\right) & =\frac{-a_{1}}{b}\int_{0}^{t}\sin\left( \frac{a_{0}%
b}{\omega}\sin\left( \omega x\right) \right) dx\\
z\left( t\right) & =\frac{1}{b}\int_{0}^{t}a_{1}\left( 1-\cos\left(
\frac{a_{0}b}{\omega}\sin\left( \omega x\right) \right) \right) dx
\end{align*}
For $\omega\neq0$. (Thanks to Maple 2016 help). However, how to evaluate
the above? It turned out that, with the help of looking up BesselJ
identities
and googling around that
$$
\sin\left( \frac{a_{0}b}{\omega}\sin\left( \omega x\right) \right)
=2\sum_{m=0}^{\infty}J\left( 2m+1,\frac{a_{0}b}{\omega}\right) \sin\left(
\left( 2m+1\right) \omega x\right)
$$
And
$$
\cos\left( \frac{a_{0}b}{\omega}\sin\left( \omega x\right) \right)
=J\left( 0,\frac{a_{0}b}{\omega}\right) +2\sum_{m=1}^{\infty}J\left(
2m,\frac{a_{0}b}{\omega}\right) \cos\left( 2m\omega x\right)
$$
And these can be analytically integrated by Mathematica! It also turned out,
that taking the limit to small value is enough to get excellent result. For
example, $m=10$. Using the above, here is the full analytical
solution for $m=10$ and comparing it to the numerical solution also
\begin{align*}
x\left( t\right) & =\frac{-a_{1}}{b}\int_{0}^{t}2\sum_{m=0}^{\infty
}J\left( 2m+1,\frac{a_{0}b}{\omega}\right) \sin\left( \left( 2m+1\right)
\omega x\right) dx\\
z\left( t\right) & =\frac{1}{b}\int_{0}^{t}a_{1}\left( 1-\left[ J\left(
0,\frac{a_{0}b}{\omega}\right) +2\sum_{m=1}^{\infty}J\left( 2m,\frac{a_{0}%
b}{\omega}\right) \cos\left( 2m\omega x\right) \right] \right) dx
\end{align*}
The rest now is show using Mathematica
Clear[a0, b, a1, w, t0, tf];
f[n_, t_] := 2 Sum[BesselJ[2 m + 1, a0 b/w] Sin[(2 m + 1) w t], {m, 0, n}];
solX = (-a1/b) Integrate[f[10, x], {x, 0, t}]
params={a0->2,b->3, a1->3,w->2};
t0=0;tf=1;
pX=Plot[solX/.params,{t,t0,tf},ImageSize->300,PlotLabel->"Analytical solution of x(t)"]
For z(t)
g[n_,t_]:=BesselJ[0,a0 b/w]+2 Sum[BesselJ[2m,a0 b/w] Cos[2m w t],{m,1,n}]
solZ=(1/b)Integrate[a1(1-g[10,x]),{x,0,t}]
t0=0;tf=1;
pZ=Plot[solZ/.params,{t,t0,tf},ImageSize->300,PlotLabel->"Analytical solution of z(t)"]
Compare to Numerical
Clear[x,z,t,w,a0,b,t0,tf,m]
a0=2;b=3; a1=3;w=2;t0=0;tf=1;
x''[t]==-a0*(a1-b*z'[t])*Cos[w*t]
z''[t]==-a0*b*x'[t]*Cos[w*t]
eqn1={x''[t]==-a0*(a1-b*z'[t])*Cos[w*t],x[t0]==0,x'[t0]==0};
eqn2={z''[t]==-a0*b*x'[t]*Cos[w*t],z[t0]==0,z'[t0]==0};
soln=NDSolve[{eqn1,eqn2},{x,z},{t,t0,tf}]
pXN=Plot[x[t]/.soln,{t,0,1},PlotLabel->"x(t) Numerical",ImageSize->300]
pzN=Plot[z[t]/.soln,{t,0,1},PlotLabel->"z(t) Numerical",ImageSize->300]
Putting them on same plot, shows they are the same
Grid[{Show[pX,pXN],Show[pZ,pzN]}]
P.S. Maple solution I used as starting point is below
restart;
eq1:=diff(x(t),t$2)= -a0*(a1-b*diff(z(t),t))*cos(w*t);
ic1:=x(0)=0,D(x)(0)=0;
eq2:=diff(z(t),t$2)= -a0*b*diff(x(t),t)*cos(w*t);
ic2:=z(0)=0,D(z)(0)=0;
dsolve({eq1,eq2,ic1,ic2},{x(t),z(t)}) assuming(w>0);
DSolve
term. Mathematica can't do that. It may be able to solve it if you do a substitutionx'[t]->u[t]
and `z'[t]->v[t]' $\endgroup$