I cook beans all the time and when that has happened to me the beans were old. Sometimes no amount of cooking is going to make them soft. They'll eventually be edible but will still be dry tasting. I have even thrown them in a pressure cooker and still could not get them soft!