Dynamically pivot the columns in sql

In my table iam having six column,out of this six columns three columns pivot that is column to row in SQL