Re-apply the PhD program that I previously got offer and turned down
To transfer means that you will need to find a new supervisor who is prepared to take you and your project on in the current state.

That might be a challenge and a bigger challenge than you realise, it is not just walk out the front door of B and in through the front door of A...