Well some more info would help!
I take it when you say no mechanical drive that the chain and cassette rotate but there is no forward movement?
If so then the freehub needs looking at.
If so then WTF do you have fitted?
Make, 11 or 12 speed. Type of drive etc.
If you are spinning the cranks and nothing is happening, then it's knackered.