Hey Dan,
depends on what your g-code is programmed to do. If you share it, forum members could have a look at it.
How do you probed that?
If you think your issue is a Z axis that does not do what you programmed it to, there are these answers in the FAQ/Troubleshooting section: