Car won’t go in gear

I just replace the transmission for my manual car, so when the car is off it goes into the gear but when it’s on it won’t.also when I press the clutch pedal the slave cylinder moves.could it be that I didnt install the clutch correctly?
You say that the slave cylinder moves, but is the clutch release bearing moving? If bearing isn't moving then the cylinder needs to either be rebuilt or replaced. Is release bearing and linkage in correct position?