Easiest fix for this transmission problem?
If you mean that that the cassette can turn both forward and backwards without engaging the rear wheel hub; the freewheel or freehub is broken.

Whether the freehub/wheel can be repaired, or whether the hub or possibly the whole wheel would need to be replaced depends on a number of things. Suggest you the bike to bike repair shop.