What is The maximum number of colours that can be used by VGA display?

VGA can certainly display 256 colors--if the display adapter in question has enough memory for it. A lot of old VGA display adapters didn't display more than 16 colors simply because they didn't have sufficient memory for the higher color depth--it had nothing to do with VGA