Name change and gender change is not allowed after booking. You have 2 options
1) Either cancel the ticket and book a fresh ticket
2) Try your luck and board the train. If the TTE is good then he will only ask your original id card but if the TTE is strict then he may ask you to get down