There are many things that can go wrong with these roofs.
I’ve just sorted a fully automatic roof from a 1997 M3 with a donor part from another car.
Have you tried to re-sync the motors first?
This can sometimes be the culprit.
https://youtu.be/boiybaJkMrI
Sent from my iPhone using Tapatalk