How you get so much gold and resorse can you pls tell me
Gold is very easy to come by. Set up your country management however you like by talking to one of the guys in the throne room, and then walk around the map for a while. Your kingdom will collect taxes, which you can retrieve by talking to the same guy. Even with your expenses maxed out, and taxes at their lowest level, you'll make a ton of money.
Resources you can acquire a similar way, on the country map. It's been a while for me, but IIRC, you need to do some exploring to get your initial wood/stone/iron, but you can start buying and upgrading the resource producing buildings (woodcutters for wood, mines for stone/iron, farms for wheat/pigs/horses, etc). You will collect resources every turn, allowing you to buy more upgrades and recruit troops to fight the battles on the country map.
Note: there may be times when you are time limited in reacting to a battle on the map, and going over that time limit could cause Bad Things(tm) to happen.