what gtx 1050, iirc no gtx 1050 comes with vga ports anymore
i think you connected the monitor to the motherboard vga port, that one should be disabled when you have a gpu like the 1050
i think you need the adapter i mentioned
if you want a bigger monitor, buy it later, but the old pc you bought definitively can work with that monitor, after you buy and use the adapter mentioned, buy it, connect it to the gpu hdmi port, connect the vga cable to the adapter and enjoy your gaming pc