Guys ive got a 23inch samsung flat screen, and currently use my pc through it etc, but since doing so i cant get sound

i play my ps3 through it also with a hdmi cable and sound is there, but ive messed with settings and nothing, do i need another type of cable and if so what?
thanks alot