It's difficult to say what's "correct" since most countries don't have clear rules on what is supposed to motivate politicians, but rather leave that to the voters.
All the things you listed are different ways to gain voter approval through signaling rather than actual progress. Subsidies and transfers may be an attempt to signal compassion, community, or group loyalty. Tax increases are primarily used to fund transfers and subsidies to favored industries, but they can also be used to punish unpopular groups, such as disliked ethnic groups, disfavored industries, or unpopular regions. Building infrastructure is in reality just subsidies and it also signals the same things as transfer payments. A tax on Wall Street, money for war widows, restrictions on oil extraction, funds for building rural highways, these are all just ways for politicians to signal that they have the right friends and also that they have the right enemies.
Japanese PM Kakuei Tanaka (from the 1970s) famously built up political support by massive pork barrel to his rural prefecture, increasing with his power and prestige. Politicians such as Robert Byrd and Strom Thurmond used blatant pork barrel spending in maintaining their domestic power bases. The US city political machines relied on patronage and spending control for over a century to maintain their political clout - with their popularity essentially reduced to "we gave you free money, please vote for us." Pork barrel spending is just the easiest and most obvious way to signal that, "Politician X is looking out for people like you." This includes transfer payments to groups like farmers, solar panel makers, or bridge builders. Giving these groups money is shorthand for supporting what those groups represent.
Conversely, increasing regulations or taxes on disfavored groups is another way to increase voter support from those outside the unpopular group. The target can be certain types of business people, such as bankers, oil drillers, payday lenders, alcohol vendors, etc. It can also just be certain groups of people, such as poor people, black people, gun owners, rural residents, rich people, mentally insane or challenged people, etc. And obviously regional hostility is a popular one, with various regions potentially resented as being aggressive, rich, and dismissive, or as being poor, uneducated, and dependent. In other words, there are lots of ways for people to resent their fellow humans. Sometimes restrictions, regulations, investigations, taxes, and humiliations are a useful tool for politicians to conjure up some support. Almost every mainstream US presidential candidate uses at least a few of these grievances; the better candidates make their accusations in a deft way such that you don't feel hateful for agreeing with a hateful sentiment.
I would say I oppose both the instinct to buy off voters and the instinct the "fix" the country, since both actions tend to revert down to basic in-group versus out-group signaling. The best politicians are those who act without prejudice or arrogance and commit to a non-violent government that seeks neither to bribe the electorate nor to reform people's behavior; in other words, the best politicians don't exist. :P