If the job no longer exists then you are making them redundant. If you make someone redundant then you cannot employ anyone in the same position for a minimum of six months.
If they are in a probationary period, redundancy need not apply. If the job has a different name, it isn't the same job.
What the law is in theory and what the law is in practice are often quite different.