Does ATC provide ILS frequency and course setting for the runway in use? I'm just from FSX background and not familiar with real procedures. In real world situations, when the pilot is vectored to the runway, does the ATC provide the pilot with the runway frequency and course setting or does the pilot have to know these already from somewhere (logs, FMS, etc)? 

I mean in a real world case does ATC say for example "Expect ILS runway 24 left" or do they tell the pilot the nav frequency and course setting too? Or does the pilot obtain the setting for approach like the FSX GPS? 

If possible please provide me with a sample communication for landing between ATC and Pilot. (Really curious)
When nearing their destination, pilots will be checking weather and airport information. This will let them know which runways are being used for landings and what type of approaches are being used. ATC will also tell each aircraft what runway and approach they can expect in advance, as in your example, "Expect ILS approach runway 24 left".

Once the pilots know the runway and approach, they can reference the corresponding chart (like the ones in this question). Pilots are required to have these charts available, traditionally paper copies but more recently being replaced by electronic copies. This will give them all of the information about the procedure, including the localizer frequency. Besides programming the frequency, the crew will also review the other important requirements of the approach and landing.

ATC does have access to this information as well, and can provide it if they feel they need to confirm the pilot has the right frequency, or if the pilot asks.