imac 21 inch mid 2011


I have an imac 21 that no speaker works, it appears as blocked, forbidden sign appears when I turn up the volume
it only works when the imac makes the start sound
I did tests with a good operating system and the same problem
I tried with headphones and it works fine
no speakers appear in system preferences-sound

any solution for this problem?