depending on the code you are using and how the SPI-interface is configured by that code it might be that the code exepcts the SPI-interface-pins on different IO-numbers
I have had similar problems in the past. But I don't remember the details.
Best thing is that you post the demo-code that you use as a code-section.
How to post code as a code-section is described here