...once I unplug the wire from the plug in the back tire, I can pull the wire that’s inside the bike frame I can pull that out to see if it’s disconnected and if it is, I can just plug it back in...
As
@saneagle said, you make sure the connector by the pedal is pushed firmly all the way in to the line, and check you haven't damaged that motor cable where it comes out from the rear wheel axle when you were fixing your tyre.
If that all seems okay, you can trace the other end of that motor cable up into the bike frame in case you pulled that: It enters behind the folding hinge, which is where the controller is. To access that, you fold the bike in half and remove the two screws (keep a note which is the right way up - do NOT invert that connector cap on reassembly which is possible on some of those fat-tyre bikes). With that plastic cap removed the controller can be pulled out, and you can check that the wires coming from the motor cable are also firmly inserted - there are 3 thicker phase wires, and several thinner ones going to a multi-way plug for the hall sensors. Make sure those are all properly inserted too. If those are okay, check over the other connectors just in case they got disturbed/if you'd pulled on the wiring when fixing your tyre.