Sounds like you have a few issues to sort out.
First off, check the wheel is sitting correctly in the dropouts. If it is off-centre, this will make indexing tricky. (I am assuming that your shifter, rear derailleur and freewheel are compatible/same speed, etc. Shimano and SRAM shifters pull...