Picture?
A picture would certainly help. My advice is to shift remove the wheel and shift to the highest gear (normally, you would do this first if your derailleur was not jammed). Then reinstall the wheel again, making sure that the derailleur hanger is properly fitted into the recess on the fork.