Transmission or clutch problems

how do you no if its the gearbox to the clutch that has stopped working

First, we need to know what symptoms/problems your car is exhibiting.