Alexis,
ax is a graphic object (a plot) and gx is data. You can construct the data for ax by using
ax = Table[{t, xB''[t]/.s },{t,0,5,0.001}]
I chose 0.001 spacing but you can change that. Also note your gx data runs from 0 to 5000 so you will need to divide the first element by 1000 if you want to plot them on the same axis. Alternatively make ax times in miliseconds:
ax = Table[{t*1000, xB''[t]/.s },{t,0,5,0.01}]
Regards,
Neil