Replay the game. And, as Kyle Reese said to Sarah Connor in The Terminator, "Do what I say! Do exactly what I say! Don't make a move unless I say! Don't make a sound unless I say! Do you understand? DO YOU UNDERSTAND?!?!"
1) TURN OFF PIRATES, because they won't help you get better at playing the game (they really won't) - in fact they will hinder your development as a player. Unless you just plan to play single player free for all type games, turn them off.
2) Here is your build order as TEC (start right away, should take 10 seconds to queue everything up): colonizer frig, capship factory -> sova, extractors, 2 military labs.
3) Send colony frig ALONE to the roid next to your planet. Go right in, capture the roid, then attack the siege frigate with your colony frig. Meanwhile, build a defensive turret directly in front of the siege frigate, as close to the roid as you can. Then upgrade the riod's population, and queue up all extractors. If you did this right, the turret will kill the siege frig and the cobalt.
4) As soon as it rolls off the assembly line, send the sova straight in to enemy homeworld, and start bombing his planet. Have the missle platforms set to autocast. If he has a carrier there, set sova to build fighters. If he is building lrm (or illums or assailants), set to fighters. Otherwise you might consider bombers.
5) Research lrm.
6) Set factory rally point to enemy planet.
7) Keep mashing "build lrm" button. Fleet up as necessary to keep building lrms.
These instructions are all that is necessary to win in short order. Note that there is no dilly-dallying or wasting of time with any of this. The game starts and you build your factory and extractors and labs, queue up the colony frig and capship factory, and queue up the research right away. As soon as the frig pops out, send it to the roid. As soon as the capship pops out, send it to the enemy homeworld, building strikecraft and selecting missle platforms as it is moving. Lrm should be queued up as soon as any funds are ready, and a continuous stream should be pouring towards the enemy hoemworld in short order.
You should win the game quickly.