The most likely think is that the harddrive has gone bad.
I'm guessing that this is a tray loading iMac. Not sure if it is worth replacing the hd.
>but it just stay stuck with a question mark inside a folder
The blinking question mark means that the firmware could not find a valid OS on your startup disk. The likeliest possibilities are your OS has become corrupted or the harddrive has failed.
If you have a second Mac computer, you may want to try to copy over as many files you can. One way is to use target disk mode.
http://support.apple.com/kb/HT1661
http://lowendmac.com/misc/06/0710.html
Another way to recover any data on the harddrive, you can try removing the harddrive from your system and placing the harddrive in an external harddrive enclosure. You may be able to read the data on a second computer.
For slot loading machines... Try holding down the option key then power on. This brings up the startup manager. Click on your hd. Click on right arrow key.
Sometimes if volumes don't appear in Startup Manager (what you get when you hold down the Option key at startup), you need to reset the Mac's PRAM, NVRAM, and Open Firmware. Shut down the Mac, then power it up, and before the screen lights up, quickly hold down the Command, Option, P, and R keys, until the Mac has chimed twice more after the powerup chime. Then, before the screen lights up, hold down Command-Option-O-F until the Open Firmware screen appears. Then enter these lines, pressing Return after each one:
reset-nvram
set-defaults
reset-all
"The reset-all command should restart your Mac. If so, you have successfully reset the Open Firmware settings."
http://support.apple.com/kb/TS1812?viewlocale=en_US
How to eject a cd from the internal cd drive:
eject cd
List of devices:
devalias
List of variables:
printenv
----------------------------------------
Query by serial number
Apple's warrenty database will identify the type of Mac you have. Your serial number is securely sent, but you get only the name of your machine.
https://selfsolve.apple.com/agreementWarrantyDynamic.do
This site provides more information, but lacks security.
"A serial number is a unique, identifying number or group of numbers and letters assigned to an individual piece of hardware or software. It's used for various things depending on the product / brand but what is your Mac's serial number for and more importantly... what is it hiding and what can it do for you ?"
http://www.appleserialnumberinfo.com/Desktop/index.php