karteek123 :
I hav the old gigabyte G31M-ES2L... will it work with the pentium G4560 ?
No, unfortunately. It's been around 10 years since Intel released a CPU that's compatible with your motherboard.
You would need a 7 series motherboard, with the the B250 boards probably being the cheapest. You would also need DDR4 RAM.