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?