Chevy s-10

I have a s-10 Chevy pickup truck. Today I went to work and the truck was working fine. When leaving work I notice that I left my door kinda open. When I tried to turn on the truck I didn’t hear a crank or anything. The lights of the dash turned on, Tho. . I tired again but still nothing. I have a friend passed me some power and the truck turn on. Once I got home and was leaving to go out the same thing happen again. Yet this time when I tried to jumper it. The truck still won’t turn on. I have hear fuel pump but to movement from the engine.