4-pin trailer connector just has wires for lamps, and aren't normally that high current.
I'm assuming the 12V accessory plug you are talking about is the cigarette lighter? It may provide enough juice for the jack, but you'd have to find out how much power the one in your vehicle can put out, and compare it with how much power the electric jack needs.
A small battery on the trailer would do ok, but it may be a hassle to keep it charged (as again, the 4 way doesn't have an always-on power supply for charging the battery, even if you use the trailer all the time, so you should put a trickle charger on the battery).
If this is something you want to do, I would suggest seeing if upgrading the plug setup on your vehicle & trailer to a 7-way, IF it can provide the power needed to run the electric jack, or if you use the trailer pretty regularly and you install a battery on the trailer for the jack.
Or, you could run wires from the vehicles battery, with a fuse, to a second plug (just a 2-way, power & ground), that you mount at the rear of the vehicle, and use that plug to power the electric jack.